OSDN Git Service

9dc3ddb6deb1cf9414120bf2c594403ed665c0a9
[ccunit/ccunit.git] / doc / Makefile.am
1 EXTRA_DIST = $(doxygen_input) $(static_pages) mainpage.dox
2
3 doxygen_input = header.html footer.html
4 static_pages = FAQ
5 #static_pages =
6
7 CCUNITSRCS=$(top_srcdir)/src/ccunit/*.[ch] $(top_srcdir)/src/tools/*.c
8
9 if DOC
10
11 htmldir = $(pkgdatadir)/html
12 html_DATA = $(static_pages) html/index.html
13
14 install-data-hook:
15         cp -p $(static_pages) html
16         cp -dpR html/* $(DESTDIR)$(htmldir)
17
18 # Automake's "distcheck" is sensitive to having files left over
19 # after "make uninstall", so we have to clean up the install hook.
20 uninstall-local:
21         rm -rf $(DESTDIR)$(htmldir)
22
23 dox: html/index.html
24
25 EXTRA_DIST += html
26
27 dist-hook:
28         cp -p $(static_pages) $(distdir)/html
29
30 else
31
32 # We repeat the three targets in both the "if" and "else" clauses
33 # of the conditional, because the generated makefile will contain
34 # references to the targets (target "install" depends on target
35 # "install-datahook", for example), and some make programs get upset
36 # if no target exists.
37
38 install-data-hook:
39 uninstall-local:
40 dox:
41
42 endif
43
44
45 all-local: dox
46
47 html/index.html: Doxyfile $(doxygen_input) $(CCUNITSRCS) mainpage.dox
48         @DOXYGEN@
49
50 pdf: @PACKAGE@.pdf
51 @PACKAGE@.pdf:
52         $(MAKE) -C ./latex pdf
53         ln -s ./latex/refman.ps  @PACKAGE@.ps
54         ln -s ./latex/refman.pdf @PACKAGE@.pdf
55
56
57 clean-local:
58         $(RM) -r latex
59         $(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf
60
61 CLEANFILES=*~ .*~ ./\#*\# *.log