# Makefile.am for ropp_apps reference documentation # ================================================= # 1. Test programs # ---------------- # pkgdata_DATA = # noinst_DATA = # 2. Files to clean # ----------------- CLEANFILES = html/* *.ps *.dvi *.pdf *.aux \ *.idx *.ilg *.ind *.log *.toc MAINTAINERCLEANFILES = rm_apps.tex # 3. Files for distribution # ------------------------- EXTRA_DIST = robodoc.rc \ rm_intro.tex \ rm_apps.tex \ rm_copyright.tex \ romsaf_ropp_apps_rm.tex \ romsaf_ropp_apps_rm.dvi \ romsaf_ropp_apps_rm.pdf # 4. Rules # -------- all: html: html/index.html refman: romsaf_ropp_apps_rm.pdf html/index.html: ../common/*.f90 ../tools/*.f90 ../tph/*.f90 ../pblh/*.f90 mkdir mywork (cd mywork; ln -s ../../common/*.f90 .) (cd mywork; ln -s ../../tools/*.f90 .) (cd mywork; ln -s ../../tph/*.f90 .) (cd mywork; ln -s ../../pblh/*.f90 .) $(ROBODOC) --src ./mywork --doc ./html --multidoc --index --toc --html (cd html ; cat index.html | grep -v masterindex.html | grep -v robo_sourcefiles.html > tmp.html ; mv tmp.html index.html ) (cd html ; rm -f masterindex.html robo_sourcefiles.html ) rm -fr mywork rm_apps.tex : ../common/*.f90 ../tools/*.f90 ../tph/*.f90 ../pblh/*.f90 mkdir mywork (cd mywork; ln -s ../../common/*.f90 .) (cd mywork; ln -s ../../tools/*.f90 .) (cd mywork; ln -s ../../tph/*.f90 .) (cd mywork; ln -s ../../pblh/*.f90 .) $(ROBODOC) --src ./mywork --doc ./rm_apps --headless --footless --singledoc --sections --latex (sed -e 's/verbatim/Verbatim/' \ rm_apps.tex > tmp.tex ; mv tmp.tex rm_apps.tex ) rm -fr mywork romsaf_ropp_apps_rm.dvi: romsaf_ropp_apps_rm.tex rm_intro.tex rm_apps.tex rm_copyright.tex latex romsaf_ropp_apps_rm latex romsaf_ropp_apps_rm bibtex romsaf_ropp_apps_rm sed s/'{SAF}'/'{ROM SAF}'/g romsaf_ropp_apps_rm.bbl_new sed s/'{ROM SAF}, G.,'/'{ROM SAF},'/g romsaf_ropp_apps_rm.bbl2_new sed s/'{ROM SAF}, R.,'/'{ROM SAF},'/g romsaf_ropp_apps_rm.bbl rm romsaf_ropp_apps_rm.bbl_new romsaf_ropp_apps_rm.bbl2_new makeindex romsaf_ropp_apps_rm latex romsaf_ropp_apps_rm romsaf_ropp_apps_rm.pdf: romsaf_ropp_apps_rm.dvi dvips -Pcmz -Pamz -ta4 $< -o romsaf_ropp_apps_rm.ps ps2pdf romsaf_ropp_apps_rm.ps rm -f romsaf_ropp_apps_rm.ps