X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=Makefile.am;h=243e47d6c1a5ba152b70c0d8ef69f2caa339d0d8;hp=b1a71ac5e3236c2f757c67ef8f2e266435130c49;hb=cad045409762492c04a32f1c6a14e930b615549c;hpb=84869bae2f0f7035fcbd853bdcb0c158545a0be7 diff --git a/Makefile.am b/Makefile.am index b1a71ac..243e47d 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 \ @@ -90,10 +92,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) +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 @@ -224,11 +226,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,6 +246,7 @@ data/m17n-db.txt: @M17NDB@/m17n-db.in utils/%_filter.rb m17n-lib.css rm -f `dirname $@`/*.html ${DOXYGEN} $< + 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 @@ -252,7 +259,7 @@ data/m17n-db.txt: @M17NDB@/m17n-db.in 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 @@ -331,9 +338,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