source: git/doc/Makefile.lib2doc @ fce947

spielwiese
Last change on this file since fce947 was 75f460, checked in by Hans Schoenemann <hannes@…>, 9 years ago
format
  • Property mode set to 100644
File size: 2.1 KB
Line 
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##
14SINGULAR = Singular
15LIBPARSE = libparse
16
17##
18## 2.) Set this to the name of your latex2html program, if you have latex2html
19##
20LATEX2HTML =
21
22
23##
24## 3.) Set this to the name of your perl5 program
25##
26PERL            = 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#
38PL2DOC          = ./pl2doc.pl
39DOC2TEX         = ./doc2tex.pl
40TEX             = tex
41MAKEINFO        = makeinfo --force --no-split
42TEXI2DVI        = texi2dvi
43TEXI2HTML       = ./texi2html
44DVIPS           = 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
50VERBOSE         = 1
51# doc2tex parameters
52DOC2TEX_OPTS    =  -verbose ${VERBOSE} -Singular ${SINGULAR}
53# texi2html parameters
54TMP_DIR         = /tmp
55TEXI2HTML_OPTS  = -expand tex -short_ref
56ifneq ($(strip $(LATEX2HTML)),)
57TEXI2HTML_OPTS  := $(TEXI2HTML_OPTS) -l2h -l2h_l2h $(LATEX2HTML) -l2h_tmp $(TMP_DIR)
58endif
59ifneq ($(VERBOSE),0)
60TEXI2HTML_OPTS := $(TEXI2HTML_OPTS) -verbose
61endif
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
94mostlyclean:
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
98clean: mostlyclean
99        rm -rf ${D2T_SUBDIR}
Note: See TracBrowser for help on using the repository browser.