X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=Makefile.am;h=bdc7b6ae632317ba5fe3a21e29c4eaf8610e2407;hp=b059480414d249fb83516076a9117a20cec73c3a;hb=eec81e9290cc6e143f551aaf60d352a89a3c7f18;hpb=1b2af6ce7aedce105572827d5cb7c84eb030f962 diff --git a/Makefile.am b/Makefile.am index b059480..bdc7b6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ # Makefile.am -- Makefile for the m17n library documentation. -# Copyright (C) 2003 +# Copyright (C) 2003, 2004, 2005, 2006 # National Institute of Advanced Industrial Science and Technology (AIST) # Registration Number H15PRO112 @@ -23,6 +23,8 @@ ## Process this file with Automake to create Makefile.in +SUBDIRS = utils + pkgdata_DATA = \ usr/html/index.html \ usr/latex/m17n-lib.dvi usr/latex/m17n-lib.ps \ @@ -58,7 +60,7 @@ install-pkgdataDATA: $(pkgdata_DATA) if MAINTAINER_MODE PROJECT_NAME_EN = "The m17n Library" -PROJECT_NAME_JA = "m17n ¥é¥¤¥Ö¥é¥ê" +PROJECT_NAME_JA = "m17n ライブラリ" PROJECT_VERSION = @PACKAGE_VERSION@ DOXYGEN = doxygen @@ -79,6 +81,7 @@ MAN1 = data/m17n-config.txt data/m17n-db.txt ${EXAMPLE_PROGS} MAN3 = @M17NLIB@/src/m17n-core.h \ @M17NLIB@/src/m17n.h \ + @M17NLIB@/src/m17n-flt.h \ @M17NLIB@/src/m17n-gui.h \ @M17NLIB@/src/m17n-X.h \ @M17NLIB@/src/m17n-misc.h \ @@ -90,10 +93,10 @@ SRCALL = \ mainpage.txt \ ${MAN3} \ data/m17n-config.txt data/m17n-db.txt data/exprog.txt \ - data/dbformat.txt data/dbdata.txt fdl.txt + data/dbformat.txt data/dbdata.txt data/dbtutorial.txt fdl.txt -DBDATA = $(shell echo @M17NDB@/*.{dir,mim,flt,fst,tbl}) -DBIMAGE = $(shell echo @M17NDB@/FORMATS/*.png @M17NDB@/FORMATS/*.eps) +DBDATA = $(shell echo @M17NDB@/*.{dir,fst,tbl} @M17NDB@/MIM/*.mim @M17NDB@/FLT/*.flt @M17NDB@/LANGDATA/LANGUAGE.tbl) +DBIMAGE = $(shell echo images/*.png images/*.eps) HTML_USR_TARGET = usr/html/index.html usr/html/parrot.png HTML_JA_TARGET = ja/html/index.html ja/html/parrot.png @@ -131,6 +134,43 @@ html: usr-html ja-html dev-html latex: usr-latex ja-latex dev-latex man: usr-man +doxyfile: Makefile + ${DOXYGEN} -g - | \ + sed -e '/^PROJECT_NAME / s/=.*/= %PROJECT_NAME%/' \ + -e '/^PROJECT_NUMBER / s/=.*/= %PROJECT_NUMBER%/' \ + -e '/^OUTPUT_DIRECTORY / s/=.*/= %USR_JA_DEV%/' \ + -e '/^OUTPUT_LANGUAGE / s/=.*/= %OUTPUT_LANGUAGE%/' \ + -e '/^OPTIMIZE_OUTPUT_FOR_C / s/=.*/= YES/' \ + -e '/^EXTRAXT_ALL / s/=.*/= YES/' \ + -e '/^SHOW_INCLUDE_FILES / s/=.*/= NO/' \ + -e '/^SHOW_MEMBER_DOCS / s/=.*/= NO/' \ + -e '/^ENABLED_SECTIONS / s/=.*/= %ENABLED_SECTIONS%/' \ + -e '/^SHOW_USED_FILES / s/=.*/= NO/' \ + -e '/^INPUT / s/=.*/= %INPUT%/' \ + -e '/^FILE_PATTERNS / s/=.*/= *.c *.txt/' \ + -e '/^EXCLUDE_PATTERNS / s/=.*/= link*.c font-ft.c/' \ + -e '/^EXAMPLE_PATH / s/=.*/= data-%USR_JA_DEV%/' \ + -e '/^IMAGE_PATH / s/=.*/= images/' \ + -e '/^INPUT_FILTER / s/=.*/= utils\/%USR_JA_DEV%_filter.sh/' \ + -e '/^VERBATIM_HEADERS / s/=.*/= NO/' \ + -e '/^ALPHABETICAL_INDEX / s/=.*/= YES/' \ + -e '/^IGNORE_PREFIX / s/=.*/= m M/' \ + -e '/^GENERATE_HTML / s/=.*/= %GENERATE_HTML%/' \ + -e '/^HTML_HEADER / s/=.*/= header.%USR_JA_DEV%.html/' \ + -e '/^HTML_FOOTER / s/=.*/= footer.%USR_JA_DEV%.html/' \ + -e '/^DISABLE_INDEX / s/=.*/= YES/' \ + -e '/^ENUM_VALUES_PER_LINE / s/=.*/= 1/' \ + -e '/^GENERATE_LATEX / s/=.*/= %GENERATE_LATEX%/' \ + -e '/^EXTRA_PACKAGES / s/=.*/= m17n-lib times/' \ + -e '/^PDF_HYPERLINKS / s/=.*/= NO/' \ + -e '/^USE_PDFLATEX / s/=.*/= NO/' \ + -e '/^LATEX_HIDE_INDICES / s/=.*/= YES/' \ + -e '/^GENERATE_MAN / s/=.*/= %GENERATE_MAN%/' \ + -e '/^MAN_EXTENSION / s/=.*/= %MAN_EXTENSION%/' \ + -e '/^PREDEFINED / s/=.*/= FOR_DOXYGEN/' \ + -e '/^GENERATE_TAGFILE / s/=.*/= m17n.tag/' \ + > $@ + doxyfile-html: doxyfile ${SRCALL} sed -e 's|%PROJECT_NUMBER%|@PACKAGE_VERSION@|' \ -e 's|%INPUT%|${SRCALL}|' \ @@ -224,11 +264,15 @@ doxyfile-man%.usr: doxyfile-man% data/exprog.txt: ${EXAMPLE_PROGS} utils/exprog.sh utils/exprog.sh ${EXAMPLE_PROGS} > $@ -data/dbdata.txt: ${DBDATA} ${DBIMAGE} @M17NDB@/mdb.dir utils/dbdata.awk +data/dbdata.txt: ${DBDATA} ${DBIMAGE} @M17NDB@/mdb.dir utils/dbdata.awk utils/dbdata.sh utils/imdoc.c + (cd utils; make) @AWK@ -f utils/dbdata.awk @M17NDB@/mdb.dir > $@ data/dbformat.txt: ${DBFORMAT} utils/dbformat.sh - utils/dbformat.sh ${DBFORMAT}/*.txt > $@ + utils/dbformat.sh ${DBFORMAT} > $@ + +data/dbtutorial.txt: ${DBFORMAT} utils/dbtutorial.sh + utils/dbtutorial.sh ${DBFORMAT} > $@ data/m17n-config.txt: @M17NLIB@/m17n-config.in sed -n -e '/\/\*\*\*/,/\*\// p' < $< > $@ @@ -240,7 +284,8 @@ data/m17n-db.txt: @M17NDB@/m17n-db.in utils/%_filter.rb m17n-lib.css rm -f `dirname $@`/*.html ${DOXYGEN} $< - cd `dirname $@`; rm *_8c* *_8h* *_8txt* dirs.html dir_* files.html + cp images/icon-*.png `dirname $@` + cd `dirname $@`; rm -f *_8c* *_8h* *_8txt* dirs.html dir_* files.html echo 'code { font-weight: bold }' >> `dirname $@`/doxygen.css %/html/parrot.png: parrot.png @@ -249,10 +294,10 @@ data/m17n-db.txt: @M17NDB@/m17n-db.in %/latex/refman.tex: doxyfile-latex.% ${SRCALL} utils/%_filter.rb rm -rf `dirname $@` ${DOXYGEN} $< - cd `dirname $@`; rm *_8c* *_8h* *_8txt* dirs.tex dir_* files.tex + cd `dirname $@`; rm -f *_8c* *_8h* *_8txt* dirs.tex dir_* files.tex %/latex/m17n-lib.dvi: %/latex/refman.tex styles/m17n-lib.sty utils/latex.sh - utils/latex.sh `dirname $@` latex + -utils/latex.sh `dirname $@` latex %/latex/m17n-lib.ps: %/latex/m17n-lib.dvi utils/dvips.sh utils/dvips.sh `dirname $@` dvips @@ -263,8 +308,9 @@ data/m17n-db.txt: @M17NDB@/m17n-db.in %/man/man1/m17n-config.1: doxyfile-man1.% ${MAN1} utils/%_filter.rb rm -rf `dirname $@` + cp doxyfile-man1.usr temp ${DOXYGEN} $< - cd `dirname $@`; rm _*.1 *.c.1 *.txt.1 + cd `dirname $@`; rm -f _*.1 *.c.1 *.txt.1 %/man/man3/m17nIntro.3m17n: doxyfile-man3.% ${MAN3} utils/%_filter.rb rm -rf `dirname $@` @@ -292,10 +338,12 @@ man/man1/%: usr/man/man1/% sample/man3/SampleGroup.3 utils/mkman.rb rm -rf doxywork man/man1/* ruby utils/mkman.rb 1 usr/man/man1 man/man1 -man/man3/%: usr/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb +man/man3/%: usr/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb \ + utils/reform-man3.sh utils/reform-man3.awk $(mkinstalldirs) man/man3 rm -rf doxywork man/man3/* ruby utils/mkman.rb 3m17n usr/man/man3m17n man/man3 + utils/reform-man3.sh man/man3 man/man5/%: usr/man/man5/% sample/man3/SampleGroup.3 utils/mkman.rb $(mkinstalldirs) man/man5 @@ -307,7 +355,7 @@ man/ja/man1/%: ja/man/man1/% sample/man3/SampleGroup.3 utils/mkman.rb rm -rf doxywork man/ja/man1/* ruby utils/mkman.rb 1 ja/man/man1 man/ja/man1 -man/ja/man3/%: ja/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb +man/ja/man3/%: ja/man/man3/% sample/man3/SampleGroup.3 utils/mkman.rb $(mkinstalldirs) man/ja/man3 rm -rf doxywork man/ja/man3/* ruby utils/mkman.rb 3m17n ja/man/man3 man/ja/man3 @@ -330,9 +378,9 @@ release: dist cd usr/html; for f in *; do \ case $$f in *8c*);; *8h*);; *8txt*);; dirs.html);; dir_*);; files.html);; *) cp $$f ${WEBDIR}/m17n-docs;; esac; \ done - [ -d ${WEBDIR}-ja/m17n-docs ] || mkdir ${WEBDIR}-ja/m17n-docs + [ -d ${WEBDIR}-ja2/m17n-docs ] || mkdir ${WEBDIR}-ja2/m17n-docs cd ja/html; for f in *; do \ - case $$f in *8c*);; *8h*);; *8txt*);; dirs.html);; dir_*);; files.html);; *) cp $$f ${WEBDIR}-ja/m17n-docs;; esac; \ + case $$f in *8c*);; *8h*);; *8txt*);; dirs.html);; dir_*);; files.html);; *) cp $$f ${WEBDIR}-ja2/m17n-docs;; esac; \ done cp ${distdir}.tar.gz ${WEBDIR}/download @@ -342,5 +390,5 @@ release: dist endif # Local Variables: -# coding: euc-jp +# coding: utf-8 # End: