From: Patrick McHardy Date: Wed, 18 Mar 2009 19:49:09 +0000 (+0100) Subject: build: fix installation when docs are not built X-Git-Tag: v0.099~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e52c3c4967916bc5d747d3b93f2d2ccdc1b155a7;p=thirdparty%2Fnftables.git build: fix installation when docs are not built Don't try to install non-existant files. Signed-off-by: Patrick McHardy --- 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