source: git/doc/Makefile.lib2doc @ 2e0b620

spielwiese
Last change on this file since 2e0b620 was 4e425a, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* lib2doc * new parsing of help strings git-svn-id: file:///usr/local/Singular/svn/trunk@3387 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.2 KB
Line 
1##########################################################################
2##
3## Makefiel for generation of docu for libraries
4## $Id: Makefile.lib2doc,v 1.2 1999-07-30 10:37:02 obachman Exp $
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 = latex2html
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
53D2T_SUBDIR      = d2t
54DOC2TEX_OPTS    = -subdir ${D2T_SUBDIR} -verbose ${VERBOSE} \
55                  -Singular ${SINGULAR}
56# texi2html parameters
57TMP_DIR         = /tmp
58TEXI2HTML_OPTS  = -expand tex -short_ref
59ifneq ($(strip $(LATEX2HTML)),)
60TEXI2HTML_OPTS  := $(TEXI2HTML_OPTS) -l2h -l2h_l2h $(LATEX2HTML) -l2h_tmp $(TMP_DIR)
61endif
62ifneq ($(VERBOSE),0)
63TEXI2HTML_OPTS := $(TEXI2HTML_OPTS) -verbose
64endif
65
66
67####################################################################
68#
69# Targets are specified as patterns
70#
71
72%.html: %.tex
73        ${TEXI2HTML} ${TEXI2HTML_OPTS} -o $@ $<
74
75%.hlp: %.tex
76        ${MAKEINFO} -o $@ $<
77
78%.ps: %.dvi
79        ${DVIPS} $< -o $@
80
81%.dvi: %.tex
82        ${TEXI2DVI} $<
83
84
85%.tex: %.doc
86        ${PERL} ${DOC2TEX} ${DOC2TEX_OPTS} -o $@ $<
87
88%.doc: %.perl
89        ${PERL} ${PL2DOC} -doc -o $@ $<
90
91%.perl: %.lib
92        ${LIBPARSE} -i $< > $@
93
94
95.PRECIOUS: %.doc %.perl %.tex %.dvi
96
97mostlyclean:
98        rm -f *.perl *.doc *.tex *.dvi *.ps *.hlp *.gif *.html *_l2h*
99        rm -f *.ky *.cp *.cps *.fn *.pg *.toc *.tp *.vr *.aux *.log *.toc
100
101clean: mostlyclean
102        rm -rf ${D2T_SUBDIR}
Note: See TracBrowser for help on using the repository browser.