summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 36c3905..052b863 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -40,7 +40,14 @@ if ENABLE_DOCS
html: html-out/index.html
install-html-local:
install -d $(DESTDIR)$(docdir)/html
- install -m 0644 html-out/* $(DESTDIR)$(docdir)/html
+ for file in `ls html-out/` ; do \
+ if test -f html-out/$$file ; then \
+ install -m 0644 html-out/$$file $(DESTDIR)$(docdir)/html ; \
+ else \
+ install -d $(DESTDIR)$(docdir)/html/$$file ; \
+ install -m 0644 html-out/$$file/* $(DESTDIR)$(docdir)/html/$$file; \
+ fi ; \
+ done
uninstall-local:
rm -rf $(DESTDIR)$(docdir)/html
endif