summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in32
1 files changed, 20 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in
index af9b635..77a7368 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -33,11 +33,11 @@ MAKE = @make@
.PHONY: all
all: sedscript
@printf 'Making executable files...\n'
- @$(MAKE) -f src/Makefile all
+ @cd src && $(MAKE) all
@printf 'Making library files...\n'
- @$(MAKE) -f lib/Makefile all
+ @cd lib && $(MAKE) all
@printf 'Making manual pages...\n'
- @$(MAKE) -f man/Makefile all
+ @cd man && $(MAKE) all
sedscript:
@printf 'Writing sed script...\n'
@@ -46,27 +46,35 @@ sedscript:
.PHONY: clean
clean:
+ @printf 'Deleting sed script...\n'
+ @rm -f sedscript
@printf 'Cleaning executable files...\n'
- @$(MAKE) -f src/Makefile clean
+ @cd src && $(MAKE) clean
@printf 'Cleaning library files...\n'
- @$(MAKE) -f lib/Makefile clean
+ @cd lib && $(MAKE) clean
@printf 'Cleaning manual pages...\n'
- @$(MAKE) -f man/Makefile clean
+ @cd man && $(MAKE) clean
.PHONY: install
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
@printf 'Installing executable files...\n'
- @$(MAKE) -f src/Makefile install
+ @cd src && $(MAKE) $$(cat ../install.config) install
@printf 'Installing libary files...\n'
- @$(MAKE) -f lib/Makefile install
+ @cd lib && $(MAKE) $$(cat ../install.config) install
@printf 'Installing manual pages...\n'
- @$(MAKE) -f man/Makefile install
+ @cd man && $(MAKE) $$(cat ../install.config) install
.PHONY: uninstall
uninstall:
@printf 'Uninstalling executable files...\n'
- @$(MAKE) -f src/Makefile uninstall
+ @cd src && $(MAKE) uninstall
@printf 'Uninstalling library files...\n'
- @$(MAKE) -f lib/Makefile uninstall
+ @cd lib && $(MAKE) uninstall
@printf 'Uninstalling manual pages...\n'
- @$(MAKE) -f man/Makefile uninstall
+ @cd man && $(MAKE) uninstall