From ccbe8a5ec2fa6d32147d81b3a46f2d4a4e10fcd3 Mon Sep 17 00:00:00 2001 From: tsutsumi <> Date: Thu, 25 Sep 2003 15:56:17 +0000 Subject: [PATCH] don't create docs when target is all --- doc/Makefile.am | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 9d6d561..d8bfb15 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -10,16 +10,15 @@ CCUNITSRCS=$(top_srcdir)/src/ccunit/*.[ch] $(top_srcdir)/src/tools/*.c 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 @@ -33,17 +32,14 @@ docs: endif -all: - CMNTST=/ CMNTED=/ 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: @@ -54,6 +50,6 @@ 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 -- 2.11.0