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