1 | ##################################################################### |
---|
2 | ### |
---|
3 | ### Makefile for Singular documentation |
---|
4 | ### $Id: Makefile.in,v 1.93 2004-04-23 13:48:28 Singular Exp $ |
---|
5 | ##################################################################### |
---|
6 | SHELL=/bin/sh |
---|
7 | |
---|
8 | #################################################################### |
---|
9 | ## |
---|
10 | ## Configuration |
---|
11 | ## |
---|
12 | SINGUNAME = @SINGUNAME@ |
---|
13 | S_VERSION = $${SINGULAR_VERSION-@SINGULAR_VERSION@} |
---|
14 | |
---|
15 | ## directory where info files are installed |
---|
16 | prefix = @prefix@ |
---|
17 | infodir = ${prefix}/info |
---|
18 | bindir = @bindir@ |
---|
19 | htmldir = ${prefix}/html |
---|
20 | exdir = ${prefix}/examples |
---|
21 | |
---|
22 | localdir = /usr/local |
---|
23 | install_prefix = ${localdir}/Singular/${S_VERSION} |
---|
24 | install_infodir = ${install_prefix}/info |
---|
25 | install_htmldir = ${install_prefix}/html |
---|
26 | install_docdir = ${install_prefix}/doc |
---|
27 | install_exdir = ${install_prefix}/examples |
---|
28 | |
---|
29 | # directory where files for ftp site go |
---|
30 | ftpdir = /tmp |
---|
31 | |
---|
32 | ## |
---|
33 | ## needed programs |
---|
34 | ## |
---|
35 | @SET_MAKE@ |
---|
36 | LN_S = @LN_S@ |
---|
37 | CC = @CC@ |
---|
38 | INSTALL = ../install-sh -c |
---|
39 | INSTALL_PROGRAM = ${INSTALL} |
---|
40 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
41 | MKINSTALLDIRS = ../mkinstalldirs |
---|
42 | GZIP = @MYGZIP@ |
---|
43 | UUDECODE = @UUDECODE@ |
---|
44 | |
---|
45 | PERL = @PERL@ |
---|
46 | TEX = tex |
---|
47 | MAKEINFO = @MAKEINFO@ --force |
---|
48 | TEXI2DVI = @TEXI2DVI@ |
---|
49 | TEXINDEX = @TEXINDEX@ |
---|
50 | # use our local texi2html |
---|
51 | TEXI2HTML = ./texi2html |
---|
52 | DVIPS = dvips |
---|
53 | |
---|
54 | VERBOSE = 1 # override this with make VERBOSE=2 |
---|
55 | |
---|
56 | # d2t stuff |
---|
57 | SINGULAR = @SINGULAR@ |
---|
58 | SINGULAR_LIB_DIR= ../Singular/LIB |
---|
59 | LIBPARSE = ${bindir}/libparse |
---|
60 | DOC_SUBDIR = ./d2t_singular |
---|
61 | EX_SUBDIR = ./examples |
---|
62 | CHKSUM_DB = ${DOC_SUBDIR}/chksum |
---|
63 | DOC2TEX = ${PERL} ./doc2tex.pl -docdir ${DOC_SUBDIR} \ |
---|
64 | -Singular ${SINGULAR} -verbose ${VERBOSE} -make ${MAKE} \ |
---|
65 | -exdir ${EX_SUBDIR} |
---|
66 | PL2DOC = ${PERL} ./pl2doc.pl -db ${CHKSUM_DB} |
---|
67 | |
---|
68 | # t2h stuff |
---|
69 | TMP_DIR = @TMP_DIR@ |
---|
70 | HTML_SUBDIR = html |
---|
71 | PLU_HTML_SUBDIR = pluhtml |
---|
72 | TEXI2HTML_INIT = t2h_singular.init |
---|
73 | ifeq ($(VERBOSE),0) |
---|
74 | T2H_VERBOSE = |
---|
75 | else |
---|
76 | T2H_VERBOSE = -Verbose |
---|
77 | endif |
---|
78 | TEXI2HTML_OPTS = -init_file ${TEXI2HTML_INIT} @TEXI2HTML_OPTS@ \ |
---|
79 | -short_ext -l2h_tmp ${TMP_DIR} -subdir ${HTML_SUBDIR} \ |
---|
80 | ${T2H_VERBOSE} |
---|
81 | PLU_TEXI2HTML_OPTS = -init_file ${TEXI2HTML_INIT} @TEXI2HTML_OPTS@ \ |
---|
82 | -short_ext -l2h_tmp ${TMP_DIR} -subdir ${PLU_HTML_SUBDIR} \ |
---|
83 | ${T2H_VERBOSE} |
---|
84 | HTML_MANUAL_PREFIX = sing |
---|
85 | PLU_HTML_MANUAL_PREFIX = sing |
---|
86 | HTML_TUTOR_PREFIX = tut |
---|
87 | HTML_MANUAL_TOP = index.htm |
---|
88 | HTML_TUTOR_TOP = tutor.htm |
---|
89 | ## |
---|
90 | ## End configuration dependend stuff |
---|
91 | ################################################################# |
---|
92 | |
---|
93 | ########################################################### |
---|
94 | # File sets |
---|
95 | # |
---|
96 | STANDALONE_TEXI_FILES = COPYING.texi INSTALL_unix.texi NEWS.texi \ |
---|
97 | README_download.texi README_ftp.texi \ |
---|
98 | README_distribution.texi README_src.texi \ |
---|
99 | INSTALL_win.texi |
---|
100 | |
---|
101 | PLU_STANDALONE_TEXI_FILES = COPYING.plural.texi INSTALL_unix.plural.texi \ |
---|
102 | NEWS.plural.texi README_download.plural.texi \ |
---|
103 | INSTALL_win.plural.texi |
---|
104 | |
---|
105 | DOC2TEX_FILES = \ |
---|
106 | examples.tex general.tex ti_ip.tex math.tex reference.tex \ |
---|
107 | start.tex types.tex pdata.tex tricks.tex platform.tex |
---|
108 | |
---|
109 | PLU_DOC2TEX_FILES = \ |
---|
110 | plural.tex plumath.tex plureference.tex plutypes.tex pluconventions.tex pluplatform.tex |
---|
111 | |
---|
112 | MANUAL_FILES = ${TEX_FILES} ${DOC2TEX_FILES} |
---|
113 | |
---|
114 | PLU_MANUAL_FILES = ${PLU_DOC2TEX_FILES} |
---|
115 | |
---|
116 | TUTOR_FILES = \ |
---|
117 | tutor.tex examples.tex start.tex copyright.tex |
---|
118 | |
---|
119 | IMAGES_UU := $(wildcard images/*.uu) |
---|
120 | IMAGES := $(IMAGES_UU:images/%.uu=%) |
---|
121 | IMAGES_SRC := $(IMAGES:%=images/%) |
---|
122 | IMAGES_HTML := $(IMAGES:%=${HTML_SUBDIR}/%) |
---|
123 | PLU_IMAGES_HTML := $(IMAGES:%=${PLU_HTML_SUBDIR}/%) |
---|
124 | |
---|
125 | # prepend bindir to path so that programs from there are taken first |
---|
126 | export PATH := "${bindir}:${PATH}" |
---|
127 | |
---|
128 | ########################################################### |
---|
129 | # top targets |
---|
130 | # |
---|
131 | |
---|
132 | .PHONY: info dvi ps html |
---|
133 | |
---|
134 | # default target |
---|
135 | all: info dvi html singular.idx |
---|
136 | |
---|
137 | # info stuff |
---|
138 | info: singular.hlp |
---|
139 | |
---|
140 | singular.hlp: ${MANUAL_FILES} singular.tex s-plural.tex |
---|
141 | - ${MAKEINFO} --no-split singular.tex |
---|
142 | |
---|
143 | plural.hlp: ${PLU_MANUAL_FILES} p-pluralmain.tex |
---|
144 | - ${MAKEINFO} --no-split -o plural.hlp p-pluralmain.tex |
---|
145 | |
---|
146 | # dvi stuff |
---|
147 | dvi: manual.dvi usercard.dvi |
---|
148 | |
---|
149 | s-plural.tex: plural.tex ${PLU_MANUAL_FILES} |
---|
150 | for PFILE in ${PLU_MANUAL_FILES};\ |
---|
151 | do \ |
---|
152 | sed 's/@value{PSUFFIX}/(plural)/g' < $${PFILE} >s-$${PFILE};\ |
---|
153 | done |
---|
154 | sed -e 's/@include plu/@include s-plu/' -e 's/@value{PSUFFIX}/(plural)/g' < plural.tex >s-plural.tex |
---|
155 | |
---|
156 | p-plural.tex: plural.tex ${PLU_MANUAL_FILES} |
---|
157 | for PFILE in ${PLU_MANUAL_FILES};\ |
---|
158 | do \ |
---|
159 | sed 's/@value{PSUFFIX}//g' < $${PFILE} >p-$${PFILE};\ |
---|
160 | done |
---|
161 | sed -e 's/@include plu/@include p-plu/' -e 's/@value{PSUFFIX}/(plural)/g' < plural.tex >p-plural.tex |
---|
162 | |
---|
163 | singular.dvi: ${MANUAL_FILES} singular.tex s-plural.tex |
---|
164 | ${TEXI2DVI} singular.tex |
---|
165 | |
---|
166 | plural.dvi: ${PLU_MANUAL_FILES} p-pluralmain.tex |
---|
167 | ${TEXI2DVI} p-pluralmain.tex; mv p-pluralmain.dvi plural.dvi |
---|
168 | |
---|
169 | manual.dvi: ${MANUAL_FILES} manual.tex s-plural.tex |
---|
170 | ${TEXI2DVI} manual.tex |
---|
171 | |
---|
172 | tutor.dvi: ${TUTOR_FILES} |
---|
173 | ${TEXI2DVI} tutor.tex |
---|
174 | |
---|
175 | usercard.dvi: usercard.tex singcard.tex |
---|
176 | ${TEX} $< |
---|
177 | |
---|
178 | # postscript stuff |
---|
179 | ps: manual.ps usercard.ps |
---|
180 | |
---|
181 | usercard.ps: usercard.dvi |
---|
182 | ${DVIPS} -t landscape -t a4 $< -o $@ |
---|
183 | |
---|
184 | %.ps: %.dvi |
---|
185 | ${DVIPS} $< -o $@ |
---|
186 | |
---|
187 | ########################################################### |
---|
188 | # texinfo targets |
---|
189 | # |
---|
190 | manual.tex: ${MANUAL_FILES} doc2tex.pl ${SINGULAR} singular.doc $(STANDALONE_TEXI_FILES) |
---|
191 | ${DOC2TEX} -no_fun -o manual.tex singular.doc |
---|
192 | |
---|
193 | singular.tex: ${MANUAL_FILES} doc2tex.pl ${LIB_TEX_FILES} ${SINGULAR} ${LIBPARSE} singular.doc $(STANDALONE_TEXI_FILES) ${PLU_MANUAL_FILES} |
---|
194 | ${DOC2TEX} -o singular.tex singular.doc |
---|
195 | |
---|
196 | pluralmain.tex: ${PLU_MANUAL_FILES} doc2tex.pl ${PLU_LIB_TEX_FILES} ${SINGULAR} ${LIBPARSE} pluralmain.doc $(PLU_STANDALONE_TEXI_FILES) |
---|
197 | ${DOC2TEX} -o pluralmain.tex pluralmain.doc |
---|
198 | |
---|
199 | #pattern rule for tex files |
---|
200 | %_noEx.tex : %.doc doc2tex.pl ${SINGULAR} |
---|
201 | ${DOC2TEX} -o $@ -no_ex $< |
---|
202 | |
---|
203 | %.tex: %.doc doc2tex.pl ${SINGULAR} |
---|
204 | ${DOC2TEX} -o $@ $< |
---|
205 | |
---|
206 | # pattern rules for lib docus |
---|
207 | ${DOC_SUBDIR}/%_lib.pl : ${SINGULAR_LIB_DIR}/%.lib ${LIBPARSE} |
---|
208 | test -d ${DOC_SUBDIR} || mkdir ${DOC_SUBDIR} |
---|
209 | ${LIBPARSE} -i $< > $@ |
---|
210 | |
---|
211 | %_noFun.doc : %.pl pl2doc.pl |
---|
212 | ${PL2DOC} -no_fun -o $@ $< |
---|
213 | |
---|
214 | %.doc : %.pl pl2doc.pl |
---|
215 | ${PL2DOC} -o $@ $< |
---|
216 | |
---|
217 | # do not delete intermediate .pl and .doc files |
---|
218 | .PRECIOUS: %.doc %_noFun.doc ${DOC_SUBDIR}/%_lib.pl |
---|
219 | |
---|
220 | # index file for help |
---|
221 | singular.idx: singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx doc2idx.pl |
---|
222 | ${PERL} doc2idx.pl singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx ${CHKSUM_DB} > singular.idx |
---|
223 | |
---|
224 | plural.idx: plural.hlp ${PLU_HTML_SUBDIR}/${PLU_HTML_MANUAL_PREFIX}_cp.idx doc2idx.pl |
---|
225 | ${PERL} doc2idx.pl plural.hlp ${PLU_HTML_SUBDIR}/${PLU_HTML_MANUAL_PREFIX}_cp.idx ${CHKSUM_DB} > plural.idx |
---|
226 | |
---|
227 | ########################################################### |
---|
228 | # stand-alone targest |
---|
229 | # |
---|
230 | |
---|
231 | STANDALONE_TXT_FILES := $(STANDALONE_TEXI_FILES:.texi=.txt) |
---|
232 | STANDALONE_HTML_FILES := $(STANDALONE_TEXI_FILES:.texi=.html) |
---|
233 | STANDALONE_FILES := $(STANDALONE_TEXI_FILES:.texi=) |
---|
234 | |
---|
235 | PLU_STANDALONE_TXT_FILES := $(PLU_STANDALONE_TEXI_FILES:.texi=.txt) |
---|
236 | PLU_STANDALONE_HTML_FILES := $(PLU_STANDALONE_TEXI_FILES:.texi=.html) |
---|
237 | PLU_STANDALONE_FILES := $(PLU_STANDALONE_TEXI_FILES:.texi=) |
---|
238 | |
---|
239 | ifeq ($(SINGUNAME),@SINGUNAME@) |
---|
240 | UNAME_OPT = -D UNAME |
---|
241 | endif |
---|
242 | |
---|
243 | # targets which produce stand-alone documents |
---|
244 | %.${SINGUNAME}.txt : %.texi |
---|
245 | ${MAKEINFO} $(UNAME_OPT) --no-header --paragraph-indent none -o $@ $< |
---|
246 | |
---|
247 | %.txt : %.texi |
---|
248 | ${MAKEINFO} --no-header --paragraph-indent none -o $@ $< |
---|
249 | |
---|
250 | %.${SINGUNAME}.html : %.texi |
---|
251 | ${PERL} ${TEXI2HTML} $(UNAME_OPT) -init_file t2h_standalone.init -split none -out_file $@ $< |
---|
252 | |
---|
253 | %.html : %.texi |
---|
254 | ${PERL} ${TEXI2HTML} -init_file t2h_standalone.init -split none -out_file $@ $< |
---|
255 | |
---|
256 | % : %.txt |
---|
257 | cp $< $@ |
---|
258 | |
---|
259 | standalone: standalone-txt standalone-html ${STANDALONE_FILES} |
---|
260 | |
---|
261 | standalone-html: ${STANDALONE_HTML_FILES} |
---|
262 | standalone-txt: ${STANDALONE_TXT_FILES} |
---|
263 | |
---|
264 | standalone-plural: standalone-txt-plural standalone-html-plural ${PLU_STANDALONE_FILES} |
---|
265 | |
---|
266 | standalone-html-plural: ${PLU_STANDALONE_HTML_FILES} |
---|
267 | standalone-txt-plural: ${PLU_STANDALONE_TXT_FILES} |
---|
268 | |
---|
269 | |
---|
270 | WWW_DIR = /singular/www/2-0/ |
---|
271 | FTP_DIR = /ftp/pub/Math/Singular/Development |
---|
272 | |
---|
273 | install-standalone: standalone |
---|
274 | cp INSTALL_unix.html COPYING.html INSTALL_win.html ${WWW_DIR} |
---|
275 | cp COPYING COPYING.html ${FTP_DIR} |
---|
276 | cp INSTALL_unix INSTALL_unix.html ${FTP_DIR} |
---|
277 | cp INSTALL_win INSTALL_win.html ${FTP_DIR} |
---|
278 | cp README_ftp.html ${FTP_DIR}/README.html |
---|
279 | cp README_ftp ${FTP_DIR}/README |
---|
280 | cp NEWS.html NEWS ${FTP_DIR} |
---|
281 | cp NEWS.html ${WWW_DIR} |
---|
282 | - chmod g+w ${FTP_DIR}/* |
---|
283 | |
---|
284 | |
---|
285 | |
---|
286 | ########################################################### |
---|
287 | # html targets |
---|
288 | # |
---|
289 | html: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_MANUAL_TOP} ${IMAGES_HTML} $(STANDALONE_TEXI_FILES) |
---|
290 | ${HTML_SUBDIR}/${HTML_MANUAL_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} singular.tex |
---|
291 | ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \ |
---|
292 | -top_file ${HTML_MANUAL_TOP} singular.tex |
---|
293 | |
---|
294 | plu_html: pluralmain.tex ${PLU_MANUAL_FILES} ${TMP_DIR} ${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP} ${PLU_IMAGES_HTML} $(PLU_STANDALONE_TEXI_FILES) |
---|
295 | ${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} plural.tex |
---|
296 | ${PERL} ${TEXI2HTML} ${PLU_TEXI2HTML_OPTS} -prefix ${PLU_HTML_MANUAL_PREFIX} \ |
---|
297 | -top_file ${HTML_MANUAL_TOP} pluralmain.tex |
---|
298 | |
---|
299 | # html stuff |
---|
300 | html_tutor: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_TUTOR_TOP} ${IMAGES_HTML} |
---|
301 | ${HTML_SUBDIR}/${HTML_TUTOR_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} tutor.tex |
---|
302 | ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_TUTOR_PREFIX} \ |
---|
303 | -top_file ${HTML_TUTOR_TOP} tutor.tex |
---|
304 | |
---|
305 | ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx: ${HTML_SUBDIR}/${HTML_MANUAL_TOP} |
---|
306 | |
---|
307 | ${PLU_HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx: ${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP} |
---|
308 | |
---|
309 | ${TMP_DIR}: |
---|
310 | ${MKINSTALLDIRS} ${TMP_DIR} |
---|
311 | |
---|
312 | # pattern rules for images - but not everybody has gnu-uudecode |
---|
313 | images/%.gif : images/%.gif.uu |
---|
314 | cd images; ${UUDECODE} ../$< ;cd .. |
---|
315 | |
---|
316 | images/%.jpg : images/%.jpg.uu |
---|
317 | cd images; ${UUDECODE} ../$< ;cd .. |
---|
318 | |
---|
319 | images/%.xbm : images/%.xbm.uu |
---|
320 | cd images; ${UUDECODE} ../$< ;cd .. |
---|
321 | |
---|
322 | ${IMAGES_HTML} : ${IMAGES_SRC} |
---|
323 | test -d ${HTML_SUBDIR} || mkdir ${HTML_SUBDIR} |
---|
324 | cp ${IMAGES_SRC} ${HTML_SUBDIR} |
---|
325 | |
---|
326 | ${PLU_IMAGES_HTML} : ${IMAGES_SRC} |
---|
327 | test -d ${PLU_HTML_SUBDIR} || mkdir ${PLU_HTML_SUBDIR} |
---|
328 | cp ${IMAGES_SRC} ${PLU_HTML_SUBDIR} |
---|
329 | |
---|
330 | |
---|
331 | |
---|
332 | ########################################################### |
---|
333 | # misc targets |
---|
334 | # |
---|
335 | install: singular.hlp html singular.idx standalone |
---|
336 | ${MKINSTALLDIRS} ${infodir} |
---|
337 | ${INSTALL_DATA} singular.hlp ${infodir} |
---|
338 | test -r ${htmldir} || ln -s `pwd`/${HTML_SUBDIR} ${htmldir} |
---|
339 | test -r ${exdir} || ln -s `pwd`/${EX_SUBDIR} ${exdir} |
---|
340 | |
---|
341 | install-plural: plural.hlp pluhtml plural.idx standalone-plural |
---|
342 | ${MKINSTALLDIRS} ${infodir} |
---|
343 | ${INSTALL_DATA} plural.hlp ${infodir} |
---|
344 | test -r ${htmldir} || ln -s `pwd`/${{PLU_HTML_SUBDIR} ${htmldir} |
---|
345 | test -r ${exdir} || ln -s `pwd`/${EX_SUBDIR} ${exdir} |
---|
346 | |
---|
347 | uninstall: |
---|
348 | rm -f ${infodir}/singular.hlp |
---|
349 | - rmdir ${infodir} |
---|
350 | |
---|
351 | #stupid HP's don't allow copy with many arguments |
---|
352 | install-sharedist: singular.hlp html singular.idx \ |
---|
353 | ${STANDALONE_HTML_FILES} ${STANDALONE_TXT_FILES} |
---|
354 | ${MKINSTALLDIRS} ${install_prefix} |
---|
355 | ${MKINSTALLDIRS} ${install_infodir} |
---|
356 | ${INSTALL_DATA} singular.hlp ${install_infodir} |
---|
357 | chmod -R +rX ${install_infodir} |
---|
358 | ${MKINSTALLDIRS} ${install_htmldir} |
---|
359 | cp ${HTML_SUBDIR}/*.htm ${install_htmldir} |
---|
360 | cp ${HTML_SUBDIR}/*.gif ${install_htmldir} |
---|
361 | cp ${HTML_SUBDIR}/*.jpg ${install_htmldir} |
---|
362 | chmod -R +rX ${install_htmldir} |
---|
363 | ${MKINSTALLDIRS} ${install_docdir} |
---|
364 | ${INSTALL_DATA} singular.idx ${install_docdir} |
---|
365 | ${INSTALL_DATA} ../GPL ${install_prefix}/GPL |
---|
366 | ${INSTALL_DATA} COPYING.txt ${install_prefix}/COPYING |
---|
367 | ${INSTALL_DATA} COPYING.html ${install_prefix} |
---|
368 | ${INSTALL_DATA} NEWS.txt ${install_prefix}/NEWS |
---|
369 | ${INSTALL_DATA} NEWS.html ${install_prefix} |
---|
370 | ${INSTALL_DATA} README_distribution.txt ${install_prefix}/README |
---|
371 | ${INSTALL_DATA} README_distribution.html ${install_prefix}/README.html |
---|
372 | chmod -R +rX ${install_docdir} |
---|
373 | chmod -R +rX ${install_prefix} |
---|
374 | ${MKINSTALLDIRS} ${install_exdir} |
---|
375 | cp -R examples ${install_prefix} |
---|
376 | /bin/rm -f ${install_prefix}/examples/[A-Z]*.res |
---|
377 | /bin/rm -f ${install_prefix}/examples/*.res |
---|
378 | /bin/rm -f ${install_prefix}/examples/[A-Z]*.inc |
---|
379 | /bin/rm -f ${install_prefix}/examples/*.inc |
---|
380 | chmod -R +rX ${install_prefix}/ |
---|
381 | |
---|
382 | install-sharedist-plural: plural.hlp plu_html plural.idx \ |
---|
383 | ${PLU_STANDALONE_HTML_FILES} ${PLU_STANDALONE_TXT_FILES} |
---|
384 | ${MKINSTALLDIRS} ${install_prefix} |
---|
385 | ${MKINSTALLDIRS} ${install_infodir} |
---|
386 | ${INSTALL_DATA} plural.hlp ${install_infodir} |
---|
387 | cp plural.hlp singular.hlp |
---|
388 | chmod -R +rX ${install_infodir} |
---|
389 | ${MKINSTALLDIRS} ${install_htmldir} |
---|
390 | cp ${PLU_HTML_SUBDIR}/*.htm ${install_htmldir} |
---|
391 | cp ${PLU_HTML_SUBDIR}/*.gif ${install_htmldir} |
---|
392 | - cp ${PLU_HTML_SUBDIR}/*.jpg ${install_htmldir} |
---|
393 | chmod -R +rX ${install_htmldir} |
---|
394 | ${MKINSTALLDIRS} ${install_docdir} |
---|
395 | ${INSTALL_DATA} plural.idx ${install_docdir} |
---|
396 | ${INSTALL_DATA} ../GPL ${install_prefix}/GPL |
---|
397 | ${INSTALL_DATA} COPYING.plural.txt ${install_prefix}/COPYING |
---|
398 | ${INSTALL_DATA} COPYING.plural.html ${install_prefix}/COPYING.html |
---|
399 | ${INSTALL_DATA} NEWS.plural.txt ${install_prefix}/NEWS |
---|
400 | ${INSTALL_DATA} NEWS.plural.html ${install_prefix}/NEWS.html |
---|
401 | chmod -R +rX ${install_docdir} |
---|
402 | chmod -R +rX ${install_prefix} |
---|
403 | if test -f examples; then \ |
---|
404 | ${MKINSTALLDIRS} ${install_exdir}; \ |
---|
405 | cp -R examples ${install_prefix}; \ |
---|
406 | /bin/rm -f ${install_prefix}/examples/[A-Z]*.res; \ |
---|
407 | /bin/rm -f ${install_prefix}/examples/*.res; \ |
---|
408 | /bin/rm -f ${install_prefix}/examples/[A-Z]*.inc; \ |
---|
409 | /bin/rm -f ${install_prefix}/examples/*.inc; \ |
---|
410 | fi |
---|
411 | chmod -R +rX ${install_prefix}/ |
---|
412 | |
---|
413 | |
---|
414 | # use 'make INSTALL_unix.olaf.txt INSTALL_unix.olaf.html SINGUNAME=olaf' |
---|
415 | # to generate these files for uname 'olaf' |
---|
416 | install-bindist: INSTALL_unix.${SINGUNAME}.txt INSTALL_unix.${SINGUNAME}.html |
---|
417 | ${MKINSTALLDIRS} ${install_prefix} |
---|
418 | ${INSTALL_DATA} INSTALL_unix.${SINGUNAME}.txt ${install_prefix}/INSTALL |
---|
419 | ${INSTALL_DATA} INSTALL_unix.${SINGUNAME}.html ${install_prefix}/INSTALL.html |
---|
420 | |
---|
421 | install-bindist-plural: |
---|
422 | ${MAKE} install-bindist SINGUNAME=plural |
---|
423 | |
---|
424 | install-ftp: ${STANDALONE_HTML_FILES} ${STANDALONE_TXT_FILES} |
---|
425 | ${INSTALL_DATA} NEWS.txt ${ftpdir}/NEWS |
---|
426 | ${INSTALL_DATA} NEWS.html ${ftpdir} |
---|
427 | ${INSTALL_DATA} COPYING.txt ${ftpdir}/COPYING |
---|
428 | ${INSTALL_DATA} COPYING.html ${ftpdir} |
---|
429 | ${INSTALL_DATA} INSTALL_unix.txt ${ftpdir}/INSTALL_unix |
---|
430 | ${INSTALL_DATA} INSTALL_unix.html ${ftpdir} |
---|
431 | ${INSTALL_DATA} README_ftp.txt ${ftpdir}/README |
---|
432 | ${INSTALL_DATA} README_ftp.html ${ftpdir}/README.html |
---|
433 | |
---|
434 | texi2html = $(TEXI2HTML:%.pl=%) |
---|
435 | |
---|
436 | lib2doc.tar.gz: |
---|
437 | rm -rf lib2doc lib2doc.tar.gz |
---|
438 | mkdir lib2doc |
---|
439 | cp Makefile.lib2doc lib2doc/Makefile |
---|
440 | ${MAKEINFO} --no-header --paragraph-indent none -o lib2doc/README lib2doc.texi |
---|
441 | cp pl2doc.pl doc2tex.pl ${texi2html} lib2doc |
---|
442 | tar cf lib2doc.tar lib2doc |
---|
443 | ${GZIP} lib2doc.tar |
---|
444 | |
---|
445 | clean: mostlyclean |
---|
446 | /bin/rm -rf singular.tex manual.tex ${DOC_SUBDIR} ${EX_SUBDIR} |
---|
447 | |
---|
448 | mostlyclean: |
---|
449 | /bin/rm -f .singular_hist doe.tmp dump.ascii example.mp example.txt |
---|
450 | /bin/rm -f save_i test.ascii test.mp |
---|
451 | /bin/rm -f Z* *.tst *.pag *.dir *.lst *.log *.aux *.cp *.cps |
---|
452 | /bin/rm -f *.fn *.fns *.ky *.kys *.log *.pg *.pgs *.toc *.tp |
---|
453 | /bin/rm -f *.tps *.vr *.vrs *.dvi *.ps |
---|
454 | /bin/rm -f singular.hlp manual.hlp ${DOC2TEX_FILES} singular.idx |
---|
455 | /bin/rm -f plural.hlp manual.hlp ${PLU_DOC2TEX_FILES} |
---|
456 | /bin/rm -f ${HTML_SUBDIR}/${HTML_MANUAL_TOP} ${HTML_SUBDIR}/${HTML_TUTOR_TOP} |
---|
457 | /bin/rm -f ${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP} ${PLU_HTML_SUBDIR}/${HTML_TUTOR_TOP} |
---|
458 | /bin/rm -rf ${STANDALONE_HTML_FILES} ${STANDALONE_FILES} ${STANDALONE_TXT_FILES} |
---|
459 | /bin/rm -f INSTALL_unix.${SINGUNAME}.txt INSTALL_unix.${SINGUNAME}.html |
---|
460 | |
---|
461 | distclean: clean |
---|
462 | /bin/rm -f Makefile |
---|
463 | /bin/rm -rf ${HTML_SUBDIR} ../html ../examples |
---|
464 | /bin/rm -rf ${PLU_HTML_SUBDIR} ../html ../examples |
---|
465 | |
---|
466 | maintainer-clean: distclean |
---|
467 | |
---|
468 | ${SINGULAR}: |
---|
469 | # cd ..; ${MAKE} ${SINGULAR} |
---|
470 | |
---|
471 | Makefile: Makefile.in |
---|
472 | cd ..; CONFIG_FILES="doc/Makefile" CONFIG_HEADERS= ./config.status |
---|
473 | |
---|
474 | html-done: ${MANUAL_FILES} |
---|
475 | |
---|