source: git/doc/Makefile.in @ fb0e15

spielwiese
Last change on this file since fb0e15 was fb0e15, checked in by Jens Schmidt <schmidt@…>, 25 years ago
* Makefile.in (SINGULAR_OBJS): `libraries.tex' removed git-svn-id: file:///usr/local/Singular/svn/trunk@1620 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.0 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         = @infodir@
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
29TEXINDEX        = texindex
30DVIPS           = dvips
31
32# directory where Singular executable is found
33SINGULARDIR     = ..
34
35##
36## End configuration dependend stuff
37#################################################################
38#
39# examples, general, math, reference,
40# singular, start, types
41#SINGULAR_OBJS= copyright.tex proc.tex
42TEX_FILES = copyright.tex # proc.tex
43SINGULAR_OBJS= examples.tex general.tex math.tex reference.tex \
44        singular.tex start.tex types.tex
45
46all: info dvi
47
48info: singular.hlp
49
50singular.hlp: ${SINGULAR_OBJS} ${TEX_FILES} Makefile
51        - ${MAKEINFO} --no-split singular.tex
52
53dvi: singular.dvi tutor.dvi
54
55ps: dvi
56        ${DVIPS} singular.dvi -o
57        ${DVIPS} tutor.dvi -o
58
59singular.dvi:  ${SINGULAR_OBJS} ${TEX_FILES} Makefile
60        ${TEX} singular.tex
61        ${TEX} singular.tex
62        ${TEXINDEX} singular.??
63        ${TEX} singular.tex
64
65tutor.dvi: tutor.tex examples.tex start.tex proc.tex copyright.tex
66        ${TEX} tutor.tex
67        ${TEX} tutor.tex
68        ${TEXINDEX} tutor.??
69        ${TEX} tutor.tex
70
71install:
72        ${MKINSTALLDIRS} ${infodir}
73        ${INSTALL_DATA} singular.hlp ${infodir}
74
75uninstall:
76        rm -f ${infodir}/singular.hlp
77        - rmdir ${infodir}
78
79clean:
80        /bin/rm -f Z* doc2tex example.* save_i *~ *.tst manual.lst doe core
81        /bin/rm -f singular.?? singular.??s singular.aux singular.log singular.toc
82        /bin/rm -f tutor.?? tutor.??s tutor.aux tutor.log tutor.toc *.lst
83        /bin/rm -f sample.lib sample_lib0.lib doe* singular.info
84
85mostlyclean: clean
86
87distclean: clean
88        /bin/rm -f Makefile *.ps
89
90maintainer-clean: distclean
91        @echo "This command is intended for maintainers to use;"
92        @echo "Rebuilding the deleted files requires makeinfo, tex and texindex"
93        /bin/rm -f *.dvi singular.hlp configure ${SINGULAR_OBJS}
94
95singular.tex :  singular.doc  doc2tex ${SINGULARDIR}/Singular
96        SINGULARPATH=${SINGULARDIR}/LIB; export SINGULARPATH; \
97        PATH=`pwd`/${SINGULARDIR}:$(PATH); export PATH; \
98        ./doc2tex ${SINGULARDIR}/Singular singular
99        echo expect one error
100        -grep "error occurred" singular.tex
101
102%.tex: %.doc doc2tex ${SINGULARDIR}/Singular
103        SINGULARPATH=${SINGULARDIR}/LIB; export SINGULARPATH; \
104        PATH=`pwd`/${SINGULARDIR}:$(PATH); export PATH; \
105        ./doc2tex ${SINGULARDIR}/Singular $*
106        -grep "error occurred" $@
107
108
109doc2tex: doc2tex.c
110        $(CC) doc2tex.c -o doc2tex
111
112${SINGULARDIR}/Singular:
113        cd ${SINGULARDIR}; ${MAKE} Singular
114
115Makefile: Makefile.in
116        cd ${SINGULARDIR}; ${MAKE} newdoc/Makefile
117
118#examples.tex: examples.doc
119#general.tex: general.doc
120#math.tex: math.doc
121#reference.tex: reference.doc
122#singular.tex: singular.doc
123#start.tex: start.doc
124#types.tex: types.doc
Note: See TracBrowser for help on using the repository browser.