aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2015-08-17 14:51:11 -0400
committerKylie McClain <somasis@exherbo.org>2015-08-17 14:51:11 -0400
commit4b7aa1f86591563678353ee199cc38f074e17bd1 (patch)
treec9af682241687b43b17a53a7191c0275a481a9f0
parent68651aba856a66580caf5bf3840baf6af9cc8bf3 (diff)
downloadclang-compat-utils-4b7aa1f86591563678353ee199cc38f074e17bd1.tar.gz
clang-compat-utils-4b7aa1f86591563678353ee199cc38f074e17bd1.tar.xz
clang-compat-utils-4b7aa1f86591563678353ee199cc38f074e17bd1.zip
Makefile: use BINDIR
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d9bdfa6..b7bec96 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,18 @@
PREFIX?=/usr
+BINDIR?=$(PREFIX)/bin
+
BINS := built-with build-world-with-clang clang-blacklist
all:
install:
- mkdir -p "$(DESTDIR)$(PREFIX)/bin"
+ mkdir -p "$(DESTDIR)$(BINDIR)/"
for bin in $(BINS);do \
- install "$$bin" "$(DESTDIR)$(PREFIX)/bin"; \
+ install "$$bin" "$(DESTDIR)$(BINDIR)/$$bin"; \
done
uninstall:
for bin in $(BINS);do \
- rm "$(DESTDIR)$(PREFIX)/$$bin"; \
+ rm "$(DESTDIR)$(BINDIR)/$$bin"; \
done
- rmdir "$(DESTDIR)$(PREFIX)/bin"
+ rmdir "$(DESTDIR)$(BINDIR)"