]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
build: fix installation when docs are not built
authorPatrick McHardy <kaber@trash.net>
Wed, 18 Mar 2009 19:49:09 +0000 (20:49 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Mar 2009 19:49:09 +0000 (20:49 +0100)
Don't try to install non-existant files.

Signed-off-by: Patrick McHardy <kaber@trash.net>
doc/Makefile.in

index 497e17ab2b676861c08615c7616114ef1d3929a8..2c42d7e5a832de19b2f79fe1a20ee9be61eda08f 100644 (file)
@@ -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