summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-25 04:12:54 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-25 04:12:54 (EST)
commitee7220f90b36798822a02e897586db9bea647a17 (patch)
tree6e883d76eb6d86e311ae27bfcf71061cbb5980cb /Makefile.in
parenteb39becc89accd98ae2017b41919a807bab30508 (diff)
Always populate 'install.config'.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 99c55c1..75f189a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -60,9 +60,12 @@ install: all
@printf 'Generating installation configuration...\n'
@echo '' > install.config
@if [ -n '$(DESTDIR)' ]; then \
- mkdir -p '$(DESTDIR)'; \
- echo "DESTDIR=$$(cd '$(DESTDIR)' && pwd)" >> install.config; \
- fi
+ destdir='$(DESTDIR)'; \
+ else \
+ destdir=/; \
+ fi; \
+ mkdir -p '$${destdir}'; \
+ echo "DESTDIR=$$(cd "$${destdir}" && pwd)" >> install.config
@printf 'Installing executable files...\n'
@cd src && $(MAKE) $$(cat ../install.config) install
@printf 'Installing libary files...\n'