OSDN Git Service

disable make documents when make all
[ccunit/ccunit.git] / doc / Makefile.am
1 EXTRA_DIST = $(doxygen_input) $(static_pages) $(DOXYSRCS)
2
3 DOXYGEN=@DOXYGEN@
4 doxygen_input = header.html footer.html
5 static_pages = FAQ
6 DOXYSRCS=mainpage.dox cookbook.dox
7
8 CCUNITSRCS=$(top_srcdir)/src/ccunit/*.[ch] $(top_srcdir)/src/tools/*.c
9
10 if DOC
11
12 htmldir = $(pkgdatadir)/html
13 html_DATA = $(static_pages) html/index.html
14
15 install-data-hook:
16         cp -p $(static_pages) html
17         cp -dpR html/* $(DESTDIR)$(htmldir)
18
19 uninstall-local:
20         $(RM) -rf $(DESTDIR)$(htmldir)
21
22 docs: html/index.html
23
24 doc-dist-hook:
25         cp -p $(static_pages) $(distdir)/html
26
27 else
28
29 install-data-hook:
30 uninstall-local:
31 docs:
32
33 endif
34
35
36 all:
37
38 CMNTST=<span class="comment">/
39 CMNTED=/</span>
40
41 html/index.html: Doxyfile $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
42         $(DOXYGEN)
43         cd html; \
44             mv -f cookbook.html cookbook.html~; \
45             sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
46                 cookbook.html~ > cookbook.html
47
48 pdf: @PACKAGE@.pdf
49 @PACKAGE@.pdf:
50         $(MAKE) -C ./latex pdf
51         $(LN_S) ./latex/refman.ps @PACKAGE@.ps
52         $(LN_S) ./latex/refman.pdf @PACKAGE@.pdf
53
54
55 clean-local:
56         $(RM) -r latex
57         $(RM) -r html/* man @PACKAGE@.ps @PACKAGE@.pdf
58
59 CLEANFILES=*~ .*~ ./\#*\# *.log