summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-10-17 20:46:27 +0000
committerFabien Costantini <fabien@onepost.net>2008-10-17 20:46:27 +0000
commit83c49f6fba0d1c707b8e20d9f68d6a60a1c6fde0 (patch)
tree3be3bba1940e3f5f9b04378b3a81411305c8a2b0 /documentation
parentb110a858d6153daa63f3c4ed9efd36022e5b94d2 (diff)
Documentation makefile: Fixed make install would return an error if html folder does not exist.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 4487c4c7b..6e0217f58 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -214,9 +214,13 @@ depend:
install: $(MANPAGES)
echo "Installing documentation files in $(DESTDIR)$(docdir)..."
-$(INSTALL_DIR) $(DESTDIR)$(docdir)
- for file in fltk.pdf html/* ; do \
+ echo Installing file from $(INST_DOC_DIR)
+ if test -f html/index.html ; then \
+ for file in html/* ; do \
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir); \
- done
+ done \
+ fi
+ $(INSTALL_DATA) fltk.pdf $(DESTDIR)$(docdir); \
echo "Installing man pages in $(DESTDIR)$(mandir)..."
-$(INSTALL_DIR) $(DESTDIR)$(mandir)/cat1
$(INSTALL_MAN) $(SRC_DOCDIR)/fluid.$(CAT1EXT) $(DESTDIR)$(mandir)/cat1