summaryrefslogtreecommitdiff
path: root/docs/doxygen/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/Makefile.am')
-rw-r--r--docs/doxygen/Makefile.am30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/doxygen/Makefile.am b/docs/doxygen/Makefile.am
new file mode 100644
index 0000000..5b4d9f3
--- /dev/null
+++ b/docs/doxygen/Makefile.am
@@ -0,0 +1,30 @@
+EXTRA_DIST = doxygen.cfg \
+ footer.html.in \
+ header.html.in
+
+if WITH_LIBFREEHAND_DOCS
+
+install-data-am:
+ mkdir -p $(DESTDIR)$(docdir)/html
+ $(INSTALL_DATA) html/*.html $(DESTDIR)$(docdir)/html/
+ $(INSTALL_DATA) html/*.png $(DESTDIR)$(docdir)/html/
+ $(INSTALL_DATA) html/*.css $(DESTDIR)$(docdir)/html/
+
+uninstall-am:
+ -rm -rf $(DESTDIR)$(docdir)/html
+
+all:
+ test -f header.html.in || $(LN_S) $(srcdir)/header.html.in ./
+ test -f footer.html.in || $(LN_S) $(srcdir)/footer.html.in ./
+ doxygen $(srcdir)/doxygen.cfg
+
+else
+
+all:
+
+endif
+
+distclean-local: clean-local
+
+clean-local:
+ rm -rf html