OSDN Git Service

don't create docs when target is all rev-1-0-rc1
authortsutsumi <>
Thu, 25 Sep 2003 15:56:17 +0000 (15:56 +0000)
committertsutsumi <>
Thu, 25 Sep 2003 15:56:17 +0000 (15:56 +0000)
doc/Makefile.am

index 9d6d561..d8bfb15 100644 (file)
@@ -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=<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:
@@ -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