OSDN Git Service

add cleanup file
[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 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 -dpR html/* $(DESTDIR)$(htmldir)
16
17 # Automake's "distcheck" is sensitive to having files left over
18 # after "make uninstall", so we have to clean up the install hook.
19 uninstall-local:
20         rm -rf $(DESTDIR)$(htmldir)
21
22 dox: html/index.html
23
24 EXTRA_DIST += html
25
26 dist-hook:
27         cp $(static_pages) $(distdir)/doc/html
28
29 else
30
31 # We repeat the three targets in both the "if" and "else" clauses
32 # of the conditional, because the generated makefile will contain
33 # references to the targets (target "install" depends on target
34 # "install-datahook", for example), and some make programs get upset
35 # if no target exists.
36
37 install-data-hook:
38 uninstall-local:
39 dox:
40
41 endif
42
43
44 all-local: dox
45
46 html/index.html: Doxyfile $(doxygen_input) $(CCUNITSRCS)
47         @DOXYGEN@
48
49 pdf: @PACKAGE@.pdf
50 @PACKAGE@.pdf:
51         $(MAKE) -C ./latex pdf
52         ln -s ./latex/refman.ps  @PACKAGE@.ps
53         ln -s ./latex/refman.pdf @PACKAGE@.pdf
54
55
56 clean-local:
57         $(RM) -r latex
58         $(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf
59
60 CLEANFILES=*~ .*~ ./\#*\# *.log