diff options
author | P. 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) |
commit | ee7220f90b36798822a02e897586db9bea647a17 (patch) | |
tree | 6e883d76eb6d86e311ae27bfcf71061cbb5980cb | |
parent | eb39becc89accd98ae2017b41919a807bab30508 (diff) |
Always populate 'install.config'.
-rw-r--r-- | Makefile.in | 9 |
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' |