next up previous contents
Next: A.4 ProTex Templates Up: APPENDIX: Reference Manual for Previous: DGESV_F90() -- Fortran90 wrapper

A.3 Tools: automatic generation of documentation

 

The most powerful feature of ProTeX is the possibility for automatic generation of nearly-publishable quality documentation with the help of perl, LaTeX and latex2html, which have to be pre-installed on a given platform.

This procedure can be embedded in makefiles so as to provide finished documentation on request when software is built. The following is one example of how to write such a makefile.

#
RM    =  rm -f
CAT   =  cat

PROTEX=  protex -s
LATEX =  latex
DVIPS =  dvips
LATEX2HTML =  latex2html

DOC=      geos_init_lib
DOC_TEST= geos_init_test
DOC_SRC= ParUtilities_types.f ParUtilities_module.f \
         Grid_types.f Grid_module.f ParRestartIO_module.f

DOC_SRC_TEST= ParUtilities_test.f Grid_test.f ParRestartIO_test.f 

doc:		doclib doctest

doclib:
	$(CAT) INTRODUCTION $(DOC_SRC) > $(DOC).f
	$(PROTEX) $(DOC).f > $(DOC).tex
	$(RM) $(DOC).f
	$(LATEX) $(DOC)
	$(DVIPS) $(DOC)
	$(LATEX2HTML) $(DOC)

doctest:
	$(CAT) INTRODUCTION_TEST $(DOC_SRC_TEST) > $(DOC_TEST).f
	$(PROTEX) $(DOC_TEST).f > $(DOC_TEST).tex
	$(RM) $(DOC_TEST).f
	$(LATEX) $(DOC_TEST)
	$(DVIPS) $(DOC_TEST)
	$(LATEX2HTML) $(DOC_TEST)


Will Sawyer
Fri Mar 6 18:02:18 EST 1998