Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created April 18, 2012 20:58
Show Gist options
  • Save springmeyer/2416505 to your computer and use it in GitHub Desktop.
Save springmeyer/2416505 to your computer and use it in GitHub Desktop.
allow OSM-binary install on osx
diff --git a/src/Makefile b/src/Makefile
index 16c3e97..b95a8b5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -16,12 +16,12 @@ libosmpbf.a: fileformat.pb.o osmformat.pb.o
cp *.pb.h ../include/osmpbf/
install:
- install -m 755 -g root -o root -d $(DESTDIR)/usr/lib
- install -m 644 -g root -o root libosmpbf.a $(DESTDIR)/usr/lib
- install -m 755 -g root -o root -d $(DESTDIR)/usr/include/osmpbf
- install -m 644 -g root -o root ../include/osmpbf/osmpbf.h $(DESTDIR)/usr/include/osmpbf
- install -m 644 -g root -o root ../include/osmpbf/fileformat.pb.h $(DESTDIR)/usr/include/osmpbf
- install -m 644 -g root -o root ../include/osmpbf/osmformat.pb.h $(DESTDIR)/usr/include/osmpbf
+ install -m 755 -d $(DESTDIR)/usr/local/lib
+ install -m 644 libosmpbf.a $(DESTDIR)/usr/local/lib
+ install -m 755 -d $(DESTDIR)/usr/local/include/osmpbf
+ install -m 644 ../include/osmpbf/osmpbf.h $(DESTDIR)/usr/local/include/osmpbf
+ install -m 644 ../include/osmpbf/fileformat.pb.h $(DESTDIR)/usr/local/include/osmpbf
+ install -m 644 ../include/osmpbf/osmformat.pb.h $(DESTDIR)/usr/local/include/osmpbf
clean:
rm -f *.pb.h *.pb.cc *.pb.o libosmpbf.a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment