summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.in
diff options
context:
space:
mode:
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