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
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
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: