#
if MAINTAINER_MODE
-PROJECT_NAME_EN = "The M17N Library"
-PROJECT_NAME_JA = "M17N ¥é¥¤¥Ö¥é¥ê"
+PROJECT_NAME_EN = "The m17n Library"
+PROJECT_NAME_JA = "m17n ¥é¥¤¥Ö¥é¥ê"
PROJECT_VERSION = @PACKAGE_VERSION@
DOXYGEN = doxygen
latex: usr-latex ja-latex dev-latex
man: usr-man ja-man
-doxyfile-html: doxyfile Makefile
+doxyfile-html: doxyfile ${SRCALL}
sed -e 's|%PROJECT_NUMBER%|@PACKAGE_VERSION@|' \
-e 's|%INPUT%|${SRCALL}|' \
-e 's|%GENERATE_HTML%|YES|' \
-e 's|%GENERATE_LATEX%|NO|' \
-e 's|%GENERATE_MAN%|NO|' \
+ -e 's|%ENABLED_SECTIONS%|FOR-HTML|' \
< $< >$@
doxyfile-html.usr: doxyfile-html
-e 's/%OUTPUT_LANGUAGE%/Japanese/' \
< $< >$@
-doxyfile-latex: doxyfile
+doxyfile-latex: doxyfile ${SRCALL}
sed -e 's|%PROJECT_NUMBER%|@PACKAGE_VERSION@|' \
-e 's|%INPUT%|${SRCALL}|' \
-e 's|%GENERATE_HTML%|NO|' \
-e 's|%GENERATE_LATEX%|YES|' \
-e 's|%GENERATE_MAN%|NO|' \
+ -e 's|%ENABLED_SECTIONS%|FOR-LATEX|' \
< $< >$@
doxyfile-latex.usr: doxyfile-latex
-e 's/%OUTPUT_LANGUAGE%/Japanese/' \
< $< >$@
-doxyfile-man1: doxyfile
+doxyfile-man1: doxyfile ${SRCALL}
sed -e 's|%PROJECT_NUMBER%|@PACKAGE_VERSION@|' \
-e 's|%INPUT%|${MAN1}|' \
-e 's|%GENERATE_HTML%|NO|' \
-e 's|%GENERATE_LATEX%|NO|' \
-e 's|%GENERATE_MAN%|YES|' \
-e 's|%MAN_EXTENSION%|.1|' \
+ -e 's|%ENABLED_SECTIONS%|FOR-MAN|' \
< $< >$@
-doxyfile-man3: doxyfile
+doxyfile-man3: doxyfile ${SRCALL}
sed -e 's|%PROJECT_NUMBER%|@PACKAGE_VERSION@|' \
-e 's|%INPUT%|${MAN3}|' \
-e 's|%GENERATE_HTML%|NO|' \
-e 's|%GENERATE_LATEX%|NO|' \
-e 's|%GENERATE_MAN%|YES|' \
-e 's|%MAN_EXTENSION%|.3m17n|' \
+ -e 's|%ENABLED_SECTIONS%|FOR-MAN|' \
< $< >$@
-doxyfile-man5: doxyfile
+doxyfile-man5: doxyfile ${SRCALL}
sed -e 's|%PROJECT_NUMBER%|@PACKAGE_VERSION@|' \
-e 's|%INPUT%|${MAN5}|' \
-e 's|%GENERATE_HTML%|NO|' \
-e 's|%GENERATE_LATEX%|NO|' \
-e 's|%GENERATE_MAN%|YES|' \
-e 's|%MAN_EXTENSION%|.5|' \
+ -e 's|%ENABLED_SECTIONS%|FOR-MAN|' \
< $< >$@
doxyfile-man%.usr: doxyfile-man%
clean-local:
rm -rf usr dev ja man doxywork
-WEBDIR = /project/web/extra/m17n-lib/m17n-docs
+WEBDIR = /project/web/extra/m17n-lib
release: dist
- [ -d ${WEBDIR} ] || mkdir ${WEBDIR}
- cp usr/html/* ${WEBDIR}
- cp ${distdir}.tar.gz ${WEBDIR}
+ [ -d ${WEBDIR}/m17n-docs ] || mkdir ${WEBDIR}/m17n-docs
+ [ -d ${WEBDIR}/download ] || mkdir ${WEBDIR}/download
+ cd usr/html; for f in *; do \
+ case $$f in *8c*);; *8h*);; *8txt*);; *) cp $$f ${WEBDIR}/m17n-docs;; esac; \
+ done
+ cp ${distdir}.tar.gz ${WEBDIR}/download
.PRECIOUS: %/latex/refman.tex %/man/man3/m17nIntro.3m ${SRCALL}