diff options
author | Tomas Chvatal <tchvatal@suse.cz> | 2012-03-13 16:13:48 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-04-25 11:01:41 +0200 |
commit | d6ec7807b977bbb5b24e7c46ed486fb65abfe48d (patch) | |
tree | 01d62aa7312e2cca45f513ea47d53f7ffbcfc623 /doc | |
parent | 0fe54f1f14aeeda0c800642a55bd7aea16b6c5db (diff) |
Automake cleanup, install and generate changelog
Diffstat (limited to 'doc')
-rw-r--r-- | doc/.gitignore | 1 | ||||
-rw-r--r-- | doc/Makefile.am | 36 |
2 files changed, 4 insertions, 33 deletions
diff --git a/doc/.gitignore b/doc/.gitignore index 3849810..acdcabb 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1 +1,2 @@ Doxyfile +html diff --git a/doc/Makefile.am b/doc/Makefile.am index 3e43c44..2a488f7 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,58 +1,29 @@ -EXTRA_DIST = $(doxygen_input) $(static_pages) - -doxygen_input = cookbook.dox other_documentation.dox header.html footer.html Money.dox -static_pages = FAQ - - -# DOC is defined if installer requests doc generation. -# For now, we only install HTML documentation. We could install manpages -# using the following -# man_MANS = man/man3/CppUnit.3 -# man/man3/CppUnit.3: dox -# and an extra copy or two in the install-data-hook. -# However, the manpages do not appear to be tremendously useful, so -# let's not bother. +.PHONY: install-data-hook uninstall-local clean-local if DOC - -html_DATA = $(static_pages) html/index.html +html_DATA = html/index.html install-data-hook: cp -pR html/* $(DESTDIR)$(htmldir) -# Automake's "distcheck" is sensitive to having files left over -# after "make uninstall", so we have to clean up the install hook. uninstall-local: rm -rf $(DESTDIR)$(htmldir) dox: html/index.html - else - -# We repeat the three targets in both the "if" and "else" clauses -# of the conditional, because the generated makefile will contain -# references to the targets (target "install" depends on target -# "install-datahook", for example), and some make programs get upset -# if no target exists. - install-data-hook: uninstall-local: dox: - endif - all-local: dox - html/index.html: Doxyfile $(doxygen_input) "@DOXYGEN@" - # Make tarfile to distribute the HTML documentation. doc-dist: dox - cp $(static_pages) html - tar -czf $(PACKAGE)-docs-$(VERSION).tar.gz -C html . + tar -cJf $(PACKAGE)-docs-$(VERSION).tar.xz -C html . pdf: @PACKAGE@.pdf @PACKAGE@.pdf: @@ -60,7 +31,6 @@ pdf: @PACKAGE@.pdf ln -s ./latex/refman.ps @PACKAGE@.ps ln -s ./latex/refman.pdf @PACKAGE@.pdf - clean-local: $(RM) -r latex $(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf |