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