summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.in
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-03-18 20:49:09 +0100
committerPatrick McHardy <kaber@trash.net>2009-03-18 20:49:09 +0100
commite52c3c4967916bc5d747d3b93f2d2ccdc1b155a7 (patch)
tree9b090d5958a2cd709b3ded303646ad3bf70fc949 /doc/Makefile.in
parent04ca5b5f3169880be20744f1f43b405b118d9aa5 (diff)
build: fix installation when docs are not built
Don't try to install non-existant files. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'doc/Makefile.in')
-rw-r--r--doc/Makefile.in16
1 files changed, 11 insertions, 5 deletions
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