diff options
-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' |