OSDN Git Service

don't create docs when target is 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
14 install-data-hook:
15         -test -d html && cp -p $(static_pages) html
16         -test -d html && cp -dpR html/* $(DESTDIR)$(htmldir) 
17
18 uninstall-local:
19         $(RM) -rf $(DESTDIR)$(htmldir)
20
21 docs: $(static_pages) html/index.html
22
23 doc-dist-hook:
24         cp -p $(static_pages) $(distdir)/html
25
26 else
27
28 install-data-hook:
29 uninstall-local:
30 docs:
31
32 endif
33
34
35 CMNTST=<span class="comment">/
36 CMNTED=/</span>
37
38 html/index.html: Doxyfile $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
39         $(DOXYGEN)
40         sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
41                 html/cookbook.html > cookbook-cmntfix.html
42         mv cookbook-cmntfix.html html/cookbook.html
43
44 pdf: @PACKAGE@.pdf
45 @PACKAGE@.pdf:
46         $(MAKE) -C ./latex pdf
47         $(LN_S) ./latex/refman.ps @PACKAGE@.ps
48         $(LN_S) ./latex/refman.pdf @PACKAGE@.pdf
49
50
51 clean-local:
52         $(RM) -r latex
53         $(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf
54
55 CLEANFILES=*~ .*~ ./\#*\# *.log