[8a0ba8] | 1 | ########################################################################## |
---|
| 2 | ## |
---|
| 3 | ## Makefiel for generation of docu for libraries |
---|
[341696] | 4 | ## $Id$ |
---|
[8a0ba8] | 5 | ##################################################################### |
---|
| 6 | |
---|
| 7 | #################################################################### |
---|
| 8 | ## |
---|
| 9 | ## Configuration: |
---|
| 10 | ## |
---|
| 11 | ## 1.) You MUST set SINGULAR and LIBPARSE to the newset versions of |
---|
| 12 | ## the Singular and libparse program (they are located at |
---|
| 13 | ## ${SingularRoot}/<uname> within a distribution). |
---|
| 14 | ## |
---|
| 15 | SINGULAR = Singular |
---|
| 16 | LIBPARSE = libparse |
---|
| 17 | |
---|
| 18 | ## |
---|
| 19 | ## 2.) Set this to the name of your latex2html program, if you have latex2html |
---|
[6361e6] | 20 | ## |
---|
| 21 | LATEX2HTML = |
---|
[8a0ba8] | 22 | |
---|
| 23 | |
---|
| 24 | ## |
---|
| 25 | ## 3.) Set this to the name of your perl5 program |
---|
| 26 | ## |
---|
| 27 | PERL = perl |
---|
| 28 | |
---|
| 29 | ## |
---|
| 30 | ## End Configuration |
---|
| 31 | #################################################################### |
---|
| 32 | # |
---|
| 33 | # There should be no need to set anything below here |
---|
| 34 | # |
---|
| 35 | |
---|
| 36 | # |
---|
| 37 | # programs we use |
---|
| 38 | # |
---|
| 39 | PL2DOC = ./pl2doc.pl |
---|
| 40 | DOC2TEX = ./doc2tex.pl |
---|
| 41 | TEX = tex |
---|
| 42 | MAKEINFO = makeinfo --force --no-split |
---|
| 43 | TEXI2DVI = texi2dvi |
---|
| 44 | TEXI2HTML = ./texi2html |
---|
| 45 | DVIPS = dvips |
---|
| 46 | |
---|
| 47 | # |
---|
| 48 | # setting of program parameters |
---|
| 49 | # |
---|
| 50 | # set this to 0 if you want no chattering, to 2 (3,4) if you want more |
---|
| 51 | VERBOSE = 1 |
---|
| 52 | # doc2tex parameters |
---|
[6361e6] | 53 | DOC2TEX_OPTS = -verbose ${VERBOSE} -Singular ${SINGULAR} |
---|
[8a0ba8] | 54 | # texi2html parameters |
---|
| 55 | TMP_DIR = /tmp |
---|
| 56 | TEXI2HTML_OPTS = -expand tex -short_ref |
---|
| 57 | ifneq ($(strip $(LATEX2HTML)),) |
---|
| 58 | TEXI2HTML_OPTS := $(TEXI2HTML_OPTS) -l2h -l2h_l2h $(LATEX2HTML) -l2h_tmp $(TMP_DIR) |
---|
| 59 | endif |
---|
| 60 | ifneq ($(VERBOSE),0) |
---|
| 61 | TEXI2HTML_OPTS := $(TEXI2HTML_OPTS) -verbose |
---|
| 62 | endif |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | #################################################################### |
---|
| 66 | # |
---|
| 67 | # Targets are specified as patterns |
---|
| 68 | # |
---|
| 69 | |
---|
| 70 | %.html: %.tex |
---|
| 71 | ${TEXI2HTML} ${TEXI2HTML_OPTS} -o $@ $< |
---|
| 72 | |
---|
| 73 | %.hlp: %.tex |
---|
| 74 | ${MAKEINFO} -o $@ $< |
---|
| 75 | |
---|
| 76 | %.ps: %.dvi |
---|
| 77 | ${DVIPS} $< -o $@ |
---|
| 78 | |
---|
| 79 | %.dvi: %.tex |
---|
| 80 | ${TEXI2DVI} $< |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %.tex: %.doc |
---|
| 84 | ${PERL} ${DOC2TEX} ${DOC2TEX_OPTS} -o $@ $< |
---|
| 85 | |
---|
| 86 | %.doc: %.perl |
---|
| 87 | ${PERL} ${PL2DOC} -doc -o $@ $< |
---|
| 88 | |
---|
| 89 | %.perl: %.lib |
---|
| 90 | ${LIBPARSE} -i $< > $@ |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | .PRECIOUS: %.doc %.perl %.tex %.dvi |
---|
| 94 | |
---|
| 95 | mostlyclean: |
---|
| 96 | rm -f *.perl *.doc *.tex *.dvi *.ps *.hlp *.gif *.html *_l2h* |
---|
| 97 | rm -f *.ky *.cp *.cps *.fn *.pg *.toc *.tp *.vr *.aux *.log *.toc |
---|
| 98 | |
---|
| 99 | clean: mostlyclean |
---|
| 100 | rm -rf ${D2T_SUBDIR} |
---|