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