From e52c3c4967916bc5d747d3b93f2d2ccdc1b155a7 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Wed, 18 Mar 2009 20:49:09 +0100 Subject: build: fix installation when docs are not built Don't try to install non-existant files. Signed-off-by: Patrick McHardy --- doc/Makefile.in | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/Makefile.in b/doc/Makefile.in index 497e17ab..2c42d7e5 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -6,9 +6,15 @@ clean: @echo -e " CLEAN\t\tdoc" $(RM) $(mandocs-y) $(pdfdocs-y) -install: +install: $(mandocs-y) $(pdfdocs-y) @echo -e " INSTALL\tdoc" - $(MKDIR_P) $(DESTDIR)/${mandir}/man8 - $(INSTALL) -m 755 -o root -g root $(mandocs-y) $(DESTDIR)/${mandir}/man8/ - $(MKDIR_P) $(DESTDIR)/${pdfdir} - $(INSTALL) -m 755 -o root -g root $(pdfdocs-y) $(DESTDIR)/${pdfdir}/ + if test -n "$(mandocs-y)"; then \ + $(MKDIR_P) $(DESTDIR)/${mandir}/man8 ;\ + $(INSTALL) -m 755 -o root -g root $(mandocs-y) \ + $(DESTDIR)/${mandir}/man8/ ;\ + fi + if test -n "$(pdfdocs-y)"; then \ + $(MKDIR_P) $(DESTDIR)/${pdfdir} ;\ + $(INSTALL) -m 755 -o root -g root $(pdfdocs-y) \ + $(DESTDIR)/${pdfdir}/ ;\ + fi -- cgit v1.2.3