1 EXTRA_DIST = $(doxygen_input) $(static_pages)
3 doxygen_input = header.html footer.html
7 # DOC is defined if installer requests doc generation.
8 # For now, we only install HTML documentation. We could install manpages
10 # man_MANS = man/man3/CppUnit.3
11 # man/man3/CppUnit.3: dox
12 # and an extra copy or two in the install-data-hook.
13 # However, the manpages do not appear to be tremendously useful, so
18 htmldir = $(pkgdatadir)/html
19 html_DATA = $(static_pages) html/index.html
21 man_MANS = man/man3/CCUnit.3
22 man/man3/CCUnit.3: dox
25 cp -dpR html/* $(DESTDIR)$(htmldir)
27 # Automake's "distcheck" is sensitive to having files left over
28 # after "make uninstall", so we have to clean up the install hook.
30 rm -rf $(DESTDIR)$(htmldir)
36 # We repeat the three targets in both the "if" and "else" clauses
37 # of the conditional, because the generated makefile will contain
38 # references to the targets (target "install" depends on target
39 # "install-datahook", for example), and some make programs get upset
40 # if no target exists.
52 html/index.html: Doxyfile $(doxygen_input)
56 # Make tarfile to distribute the HTML documentation.
58 cp $(static_pages) html
59 tar -czf $(PACKAGE)-docs-$(VERSION).tar.gz -C html .
63 $(MAKE) -C ./latex pdf
64 ln -s ./latex/refman.ps @PACKAGE@.ps
65 ln -s ./latex/refman.pdf @PACKAGE@.pdf
70 $(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf