diff options
author | Patrick McHardy <kaber@trash.net> | 2009-03-18 20:49:09 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-03-18 20:49:09 +0100 |
commit | e52c3c4967916bc5d747d3b93f2d2ccdc1b155a7 (patch) | |
tree | 9b090d5958a2cd709b3ded303646ad3bf70fc949 /doc/Makefile.in | |
parent | 04ca5b5f3169880be20744f1f43b405b118d9aa5 (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.in | 16 |
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 |