Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/auriamg/macdylibbundler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Schmidt <git@ryandesign.com>2015-06-07 04:18:12 +0300
committerRyan Schmidt <git@ryandesign.com>2015-06-07 04:18:12 +0300
commit471cc01e747e3ff7ddc424fc7ff56b405654a2ae (patch)
tree075c125da02e9243e25dabcd09a303d59ff39035
parent0d8c73958bc0b76582d4df886c258937fb2c7bc4 (diff)
Support DESTDIR and PREFIX variables
-rw-r--r--makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/makefile b/makefile
index fc4d69d..1025a30 100644
--- a/makefile
+++ b/makefile
@@ -1,3 +1,6 @@
+DESTDIR=
+PREFIX=/usr/local
+
dylibbundler:
g++ -c -I./src ./src/Settings.cpp -o ./Settings.o
g++ -c -I./src ./src/DylibBundler.cpp -o ./DylibBundler.o
@@ -11,5 +14,5 @@ clean:
rm -f ./dylibbundler
install: dylibbundler
- cp ./dylibbundler /usr/local/bin/dylibbundler
- chmod 775 /usr/local/bin/dylibbundler \ No newline at end of file
+ cp ./dylibbundler $(DESTDIR)$(PREFIX)/bin/dylibbundler
+ chmod 775 $(DESTDIR)$(PREFIX)/bin/dylibbundler