if DOC
htmldir = $(pkgdatadir)/html
-html_DATA = $(static_pages) html/index.html
install-data-hook:
- cp -p $(static_pages) html
- cp -dpR html/* $(DESTDIR)$(htmldir)
+ -test -d html && cp -p $(static_pages) html
+ -test -d html && cp -dpR html/* $(DESTDIR)$(htmldir)
uninstall-local:
$(RM) -rf $(DESTDIR)$(htmldir)
-docs: html/index.html
+docs: $(static_pages) html/index.html
doc-dist-hook:
cp -p $(static_pages) $(distdir)/html
endif
-all:
-
CMNTST=<span class="comment">/
CMNTED=/</span>
html/index.html: Doxyfile $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
$(DOXYGEN)
- cd html; \
- mv -f cookbook.html cookbook.html~; \
- sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
- cookbook.html~ > cookbook.html
+ sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
+ html/cookbook.html > cookbook-cmntfix.html
+ mv cookbook-cmntfix.html html/cookbook.html
pdf: @PACKAGE@.pdf
@PACKAGE@.pdf:
clean-local:
$(RM) -r latex
- $(RM) -r html/* man @PACKAGE@.ps @PACKAGE@.pdf
+ $(RM) -r html man @PACKAGE@.ps @PACKAGE@.pdf
CLEANFILES=*~ .*~ ./\#*\# *.log