source: git/doc/Makefile.in @ 9c935cb

spielwiese
Last change on this file since 9c935cb was 9c935cb, checked in by Kai Krüger <krueger@…>, 26 years ago
Added html-version of tutorial git-svn-id: file:///usr/local/Singular/svn/trunk@2414 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.4 KB
Line 
1#####################################################################
2###
3### Makefile for Singular documentation
4###
5#####################################################################
6SHELL=/bin/sh
7
8####################################################################
9##
10## Configuration
11##
12
13## directory where info files are installed
14prefix          = @prefix@
15infodir         = ${prefix}/info
16
17##
18## needed programs
19##
20@SET_MAKE@
21CC              = @CC@
22INSTALL         = ../install-sh -c
23INSTALL_PROGRAM = ${INSTALL}
24INSTALL_DATA    = ${INSTALL} -m 644
25MKINSTALLDIRS   = ../mkinstalldirs
26
27TEX             = tex
28MAKEINFO        = makeinfo
29TEXI2DVI        = texi2dvi
30TEXINDEX        = texindex
31DVIPS           = dvips
32IMAGES          = contents_motif.gif index_motif.gif \
33                next_motif.gif next_motif_gr.gif \
34                previous_motif.gif previous_motif_gr.gif \
35                singular-small.jpg singular.jpg \
36                invisible.xbm bg_left.gif bg_right.gif
37
38SINGULAR        = @SINGULAR@
39##
40## End configuration dependend stuff
41#################################################################
42
43# files
44TEX_FILES       = copyright.tex
45DOC2TEX_FILES   = \
46                examples.tex general.tex math.tex reference.tex \
47                singular.tex start.tex types.tex pdata.tex
48
49MANUAL_FILES    = ${TEX_FILES} ${DOC2TEX_FILES}
50TUTOR_FILES     = \
51                tutor.tex examples.tex start.tex copyright.tex
52
53.PHONY: info dvi ps
54# default target
55all: info dvi html
56
57# info stuff
58info: singular.hlp
59
60singular.hlp: ${MANUAL_FILES}
61        - ${MAKEINFO} --no-split singular.tex
62
63# dvi stuff
64dvi: singular.dvi usercard.dvi
65
66singular.dvi: ${MANUAL_FILES}
67        ${TEXI2DVI} singular.tex
68
69tutor.dvi: ${TUTOR_FILES}
70        ${TEXI2DVI} tutor.tex
71
72usercard.dvi: usercard.tex singcard.tex
73        ${TEX} $<
74
75# postscript stuff
76ps: singular.ps usercard.ps
77
78usercard.ps: usercard.dvi
79        ${DVIPS} -t landscape $< -o $@
80
81%.ps: %.dvi
82        ${DVIPS} $< -o $@
83
84# html stuff
85html: ${MANUAL_FILES}
86        test -d html || mkdir html
87        cd html && ../texi2html -I .. -menu -expandinfo -number -split_node -verbose ../singular.tex
88        test -d html/images || mkdir html/images
89        for img in ${IMAGES}; \
90        do \
91                echo uudecode images/$${img}.uu; \
92                uudecode images/$${img}.uu; \
93        done
94        touch html
95
96# html stuff
97html_tutor: ${TUTOR_FILES}
98        test -d html_tutor || mkdir html_tutor
99        cd html_tutor && ../texi2html -I .. -menu -expandinfo -number -split_node -verbose ../tutor.tex
100        test -d html || mkdir html
101        test -d html/images || mkdir html/images
102        for img in ${IMAGES}; \
103        do \
104                echo uudecode images/$${img}.uu; \
105                uudecode images/$${img}.uu; \
106        done
107        test -e html_tutor/images || (cd html_tutor; ln -s ../html/images images)
108        touch html_tutor
109
110# how to create the texinfo files
111%.tex: %.doc doc2tex ${SINGULAR}
112        @ echo
113        @ echo "Be sure Singular is up-to-date before making the examples!"
114        @ echo
115        ./doc2tex ${SINGULAR} $*
116        - grep "error occurred" $@
117
118doc2tex: doc2tex.c
119        $(CC) doc2tex.c -o doc2tex
120
121# targets concerned with maintenance
122install: singular.hlp
123        ${MKINSTALLDIRS} ${infodir}
124        ${INSTALL_DATA} singular.hlp ${infodir}
125
126uninstall:
127        rm -f ${infodir}/singular.hlp
128        - rmdir ${infodir}
129
130clean:
131        /bin/rm -f .singular_hist doe.tmp dump.ascii example.mp example.txt
132        /bin/rm -f save_i test.ascii test.mp
133        /bin/rm -f Z* *.tst *.pag *.dir *.lst *.log *.aux *.cp *.cps
134        /bin/rm -f *.fn *.fns *.ky *.kys *.log *.pg *.pgs *.toc *.tp
135        /bin/rm -f *.tps *.vr *.vrs
136        /bin/rm -f doc2tex singular.hlp *.dvi *.ps ${DOC2TEX_FILES}
137        /bin/rm -rf html
138
139mostlyclean: clean
140
141distclean: mostlyclean
142        /bin/rm -f Makefile
143
144maintainer-clean: distclean
145
146${SINGULAR}:
147#       cd ..; ${MAKE} ${SINGULAR}
148
149Makefile: Makefile.in
150        cd ..; ${MAKE} doc/Makefile
151
152html-done: ${MANUAL_FILES}
153
Note: See TracBrowser for help on using the repository browser.