OSDN Git Service

(no commit message)
[ccunit/ccunit.git] / doc / Makefile.am
1 EXTRA_DIST = $(doxygen_input) $(static_pages)
2
3 doxygen_input = header.html footer.html
4 #static_pages = FAQ
5 static_pages =
6
7 # DOC is defined if installer requests doc generation.
8 # For now, we only install HTML documentation.  We could install manpages
9 # using the following
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
14 # let's not bother.
15
16 if DOC
17
18 htmldir = $(pkgdatadir)/html
19 html_DATA = $(static_pages) html/index.html
20
21 man_MANS = man/man3/CCUnit.3
22 man/man3/CCUnit.3: dox
23
24 install-data-hook:
25         cp -dpR html/* $(DESTDIR)$(htmldir)
26
27 # Automake's "distcheck" is sensitive to having files left over
28 # after "make uninstall", so we have to clean up the install hook.
29 uninstall-local:
30         rm -rf $(DESTDIR)$(htmldir)
31
32 dox: html/index.html
33
34 else
35
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.
41
42 install-data-hook:
43 uninstall-local:
44 dox:
45
46 endif
47
48
49 all-local: dox
50
51
52 html/index.html: Doxyfile $(doxygen_input)
53         @DOXYGEN@
54
55
56 # Make tarfile to distribute the HTML documentation.
57 doc-dist: dox
58         cp $(static_pages) html
59         tar -czf $(PACKAGE)-docs-$(VERSION).tar.gz -C html .
60
61 pdf: @PACKAGE@.pdf
62 @PACKAGE@.pdf:
63         $(MAKE) -C ./latex pdf
64         ln -s ./latex/refman.ps  @PACKAGE@.ps
65         ln -s ./latex/refman.pdf @PACKAGE@.pdf
66
67
68 clean-local:
69         $(RM) -r latex
70         $(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf