OSDN Git Service

to japanese documents
authortsntsumi <tsntsumi@users.sourceforge.jp>
Thu, 23 Oct 2003 19:33:17 +0000 (19:33 +0000)
committertsntsumi <tsntsumi@users.sourceforge.jp>
Thu, 23 Oct 2003 19:33:17 +0000 (19:33 +0000)
doc/Makefile.am

index 9900a87..528f8c3 100644 (file)
@@ -3,7 +3,7 @@ EXTRA_DIST = $(doxygen_input) $(static_pages) $(DOXYSRCS)
 DOXYGEN=@DOXYGEN@
 doxygen_input = header.html footer.html
 static_pages = FAQ
-DOXYSRCS=mainpage.dox cookbook.dox cookbook.ja.dox
+DOXYSRCS=mainpage.dox cookbook.dox
 
 CCUNITSRCS=$(top_srcdir)/src/ccunit/*.[ch] $(top_srcdir)/src/tools/*.c
 
@@ -11,19 +11,32 @@ if DOC
 
 htmldir = $(pkgdatadir)/html
 distdocdir = $(top_distdir)/$(PACKAGE)-$(VERSION)-doc
+if JPNDOC
+htmljadir = $(pkgdatadir)/ja/html
+distdocjadir = $(top_distdir)/$(PACKAGE)-$(VERSION)-doc-ja
+endif
 
 install-data-hook:
        -test -d html && cp -p $(static_pages) html
        -test -d html && cp -dpR html/* $(DESTDIR)$(htmldir) 
+if JPNDOC
+       -test -d ja/html && cp -dpR ja/html/* $(DESTDIR)$(htmljadir)
+endif
 
 uninstall-local:
        $(RM) -rf $(DESTDIR)$(htmldir)
+if JPNDOC
+       $(RM) -rf $(DESTDIR)$(htmljadir)
+endif
 
-docs: $(static_pages) html/index.html
+docs: $(static_pages) html/index.html ja/html/index.html
 
 dist-docs:
        cp -p $(static_pages) $(distdocdir)/html
        cp -p html/* $(distdocdir)/html
+if JPNDOC
+       cp -p ja/html/* $(distdocjadir)/ja/html
+endif
 
 else
 
@@ -37,14 +50,26 @@ endif
 CMNTST=<span class="comment">/
 CMNTED=/</span>
 
-html/index.html: Doxyfile $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
-       $(DOXYGEN)
+html/index.html: Doxyfile Doxyfile.en \
+               $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
+       $(DOXYGEN) Doxyfile.en
        sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
                html/cookbook.html > cookbook-cmntfix.html
        mv cookbook-cmntfix.html html/cookbook.html
+
+if JPNDOC
+ja/html/index.html: Doxyfile Doxyfile.jp \
+               $(doxygen_input) $(CCUNITSRCS) $(DOXYSRCS)
+       $(DOXYGEN) Doxyfile.jp
        sed -e 's!\($(CMNTST)\)/\(\*.*\*\)\\\($(CMNTED)\)!\1\2\3!g' \
-               html/cookbook_ja.html > cookbook-cmntfix_ja.html
-       mv cookbook-cmntfix_ja.html html/cookbook_ja.html
+               ja/html/cookbook.html > cookbook-cmntfix.html
+       mv cookbook-cmntfix.html ja/html/cookbook.html
+else
+
+ja/html/index.html:
+       @true
+
+endif
 
 pdf: @PACKAGE@.pdf
 @PACKAGE@.pdf: