summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 252b51a..a59c89e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
V=20121128.6
PREFIX = /usr/local
+pkgdatadir=$(PREFIX)/share/devtools
BINPROGS = \
checkpkg \
@@ -13,9 +14,9 @@ SBINPROGS = \
all: $(BINPROGS) $(SBINPROGS) bash_completion zsh_completion
-edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
+edit = sed -e "s|@pkgdatadir[@]|$(pkgdatadir)|g"
-%: %.in Makefile lib/common.sh
+%: %.in Makefile
@echo "GEN $@"
@$(RM) "$@"
@m4 -P $@.in | $(edit) >$@
@@ -28,7 +29,7 @@ clean:
install: all
install -dm0755 $(DESTDIR)$(PREFIX)/bin
install -dm0755 $(DESTDIR)$(PREFIX)/sbin
- install -dm0755 $(DESTDIR)$(PREFIX)/share/devtools
+ install -dm0755 $(DESTDIR)$(pkgdatadir)
install -m0755 ${BINPROGS} $(DESTDIR)$(PREFIX)/bin
# install -m0755 ${SBINPROGS} $(DESTDIR)$(PREFIX)/sbin
@@ -36,7 +37,7 @@ install: all
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
- install -m0644 lib/common.real.sh $(DESTDIR)$(PREFIX)/share/devtools/common.sh
+ install -m0644 lib/common.sh $(DESTDIR)$(pkgdatadir)/common.sh
install -Dm0644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/devtools
install -Dm0644 zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools