source: git/doc/Makefile.lib2doc @ a34b097

spielwiese
Last change on this file since a34b097 was 341696, checked in by Hans Schönemann <hannes@…>, 14 years ago
Adding Id property to all files git-svn-id: file:///usr/local/Singular/svn/trunk@12231 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.1 KB
Line 
1##########################################################################
2##
3## Makefiel for generation of docu for libraries
4## $Id$
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##
15SINGULAR = Singular
16LIBPARSE = libparse
17
18##
19## 2.) Set this to the name of your latex2html program, if you have latex2html
20##     
21LATEX2HTML =
22
23
24##
25## 3.) Set this to the name of your perl5 program
26##
27PERL            = 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#
39PL2DOC          = ./pl2doc.pl
40DOC2TEX         = ./doc2tex.pl
41TEX             = tex
42MAKEINFO        = makeinfo --force --no-split
43TEXI2DVI        = texi2dvi
44TEXI2HTML       = ./texi2html
45DVIPS           = 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
51VERBOSE         = 1
52# doc2tex parameters
53DOC2TEX_OPTS    =  -verbose ${VERBOSE} -Singular ${SINGULAR}
54# texi2html parameters
55TMP_DIR         = /tmp
56TEXI2HTML_OPTS  = -expand tex -short_ref
57ifneq ($(strip $(LATEX2HTML)),)
58TEXI2HTML_OPTS  := $(TEXI2HTML_OPTS) -l2h -l2h_l2h $(LATEX2HTML) -l2h_tmp $(TMP_DIR)
59endif
60ifneq ($(VERBOSE),0)
61TEXI2HTML_OPTS := $(TEXI2HTML_OPTS) -verbose
62endif
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
95mostlyclean:
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
99clean: mostlyclean
100        rm -rf ${D2T_SUBDIR}
Note: See TracBrowser for help on using the repository browser.