source: git/doc/Makefile.in @ cc7519

fieker-DuValspielwiese
Last change on this file since cc7519 was cc7519, checked in by Hans Schönemann <hannes@…>, 16 years ago
*hannes: syntax git-svn-id: file:///usr/local/Singular/svn/trunk@11148 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 16.3 KB
RevLine 
[d30e2a8]1#####################################################################
[3de58c]2###
3### Makefile for Singular documentation
[cc7519]4### $Id: Makefile.in,v 1.104 2008-10-17 09:01:33 Singular Exp $
[d30e2a8]5#####################################################################
6SHELL=/bin/sh
7
8####################################################################
9##
10## Configuration
11##
[685b4c]12SINGUNAME       = @SINGUNAME@
13S_VERSION       = $${SINGULAR_VERSION-@SINGULAR_VERSION@}
[d30e2a8]14
15## directory where info files are installed
[3de58c]16prefix          = @prefix@
17infodir         = ${prefix}/info
18bindir          = @bindir@
[460c1e1]19htmldir         = ${prefix}/html
[c04b94]20exdir           = ${prefix}/examples
[685b4c]21
22localdir        = /usr/local
23install_prefix  = ${localdir}/Singular/${S_VERSION}
[4b72f6]24install_infodir = ${install_prefix}/info
25install_htmldir = ${install_prefix}/html
26install_docdir  = ${install_prefix}/doc
[c04b94]27install_exdir   = ${install_prefix}/examples
[d30e2a8]28
[a94090]29# directory where files for ftp site go
[3de58c]30ftpdir          = /tmp
[a94090]31
[d30e2a8]32##
33## needed programs
34##
35@SET_MAKE@
[3de58c]36LN_S            = @LN_S@
37CC              = @CC@
38INSTALL         = ../install-sh -c
39INSTALL_PROGRAM = ${INSTALL}
40INSTALL_DATA    = ${INSTALL} -m 644
[d30e2a8]41MKINSTALLDIRS   = ../mkinstalldirs
[3de58c]42GZIP            = @MYGZIP@
43UUDECODE        = @UUDECODE@
44
45PERL            = @PERL@
46TEX             = tex
47MAKEINFO        = @MAKEINFO@ --force
48TEXI2DVI        = @TEXI2DVI@
[175c56]49TEXI2PDF        = @TEXI2PDF@
[3de58c]50TEXINDEX        = @TEXINDEX@
[a0fdca8]51# use our local texi2html
[3de58c]52TEXI2HTML       = ./texi2html
53DVIPS           = dvips
[d30e2a8]54
[354f3b]55VERBOSE         = 1 # override this with make VERBOSE=2
[685b4c]56
[f36635]57# d2t stuff
[3de58c]58SINGULAR        = @SINGULAR@
[dcc635]59SINGULAR_LIB_DIR= ../Singular/LIB
[0c7e78]60ifeq ($(SINGUNAME),"ix86-Win")
61LIBPARSE        = ${bindir}/libparse.exe
62else
[3de58c]63LIBPARSE        = ${bindir}/libparse
[0c7e78]64endif
[c04b94]65DOC_SUBDIR      = ./d2t_singular
66EX_SUBDIR       = ./examples
67CHKSUM_DB       = ${DOC_SUBDIR}/chksum
[3de58c]68DOC2TEX         = ${PERL} ./doc2tex.pl -docdir ${DOC_SUBDIR} \
[c04b94]69                  -Singular ${SINGULAR} -verbose ${VERBOSE} -make ${MAKE} \
[57de80]70                  -exdir ${EX_SUBDIR} @DOC2TEX_EXAMPLE_EXCLUSIONS@
[ed0124e]71PL2DOC          = ${PERL} ./pl2doc.pl -db ${CHKSUM_DB}
[dcc635]72
73# t2h stuff
[f36635]74TMP_DIR         = @TMP_DIR@
[dcc635]75HTML_SUBDIR     = html
[213882]76PLU_HTML_SUBDIR = pluhtml
[dcc635]77TEXI2HTML_INIT  = t2h_singular.init
[0a2ba89]78ifeq ($(VERBOSE),0)
[3de58c]79T2H_VERBOSE     =
[0a2ba89]80else
[3cc667]81T2H_VERBOSE     = -Verbose
[0a2ba89]82endif
[dcc635]83TEXI2HTML_OPTS  = -init_file ${TEXI2HTML_INIT} @TEXI2HTML_OPTS@ \
[d0313d]84                  -short_ext -l2h_tmp ${TMP_DIR} -subdir ${HTML_SUBDIR} \
[0a2ba89]85                  ${T2H_VERBOSE}
[213882]86PLU_TEXI2HTML_OPTS  = -init_file ${TEXI2HTML_INIT} @TEXI2HTML_OPTS@ \
87                  -short_ext -l2h_tmp ${TMP_DIR} -subdir ${PLU_HTML_SUBDIR} \
88                  ${T2H_VERBOSE}
[dcc635]89HTML_MANUAL_PREFIX = sing
[ed0124e]90PLU_HTML_MANUAL_PREFIX = sing
[dcc635]91HTML_TUTOR_PREFIX  = tut
92HTML_MANUAL_TOP    = index.htm
93HTML_TUTOR_TOP     = tutor.htm
[d30e2a8]94##
95## End configuration dependend stuff
96#################################################################
97
[65a2bd]98###########################################################
99# File sets
100#
[a94090]101STANDALONE_TEXI_FILES   = COPYING.texi INSTALL_unix.texi NEWS.texi \
[c84d678]102                          README_download.texi README_ftp.texi \
[974752]103                          README_distribution.texi README_src.texi \
[3de58c]104                          INSTALL_win.texi
[e3663f1]105
[643fbb]106PLU_STANDALONE_TEXI_FILES = COPYING.plural.texi INSTALL_unix.plural.texi \
[932917]107                            NEWS.plural.texi README_download.plural.texi \
108                            INSTALL_win.plural.texi
[643fbb]109
[d462b24]110PLU_ONLY_FILES          = pluplatform.tex
[d30e2a8]111
[213882]112PLU_DOC2TEX_FILES       = \
[d462b24]113                plural.tex plumath.tex plureference.tex plutypes.tex pluconventions.tex
114
[cc7519]115DOC2TEX_FILES   = decodegb.tex \
[d462b24]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}
[213882]119
[d462b24]120PLU_MANUAL_FILES = ${PLU_DOC2TEX_FILES} ${PLU_ONLY_FILES}
[213882]121
[d462b24]122MANUAL_FILES    = ${TEX_FILES} ${DOC2TEX_FILES} ${PLU_MANUAL_FILES}
[213882]123
[bfb256]124TUTOR_FILES     = \
[67484b]125                tutor.tex examples.tex start.tex COPYING.texi
[bfb256]126
[dcc635]127IMAGES_UU       := $(wildcard images/*.uu)
[460c1e1]128IMAGES     := $(IMAGES_UU:images/%.uu=%)
[877605]129IMAGES_SRC := $(IMAGES:%=images/%)
[dcc635]130IMAGES_HTML := $(IMAGES:%=${HTML_SUBDIR}/%)
[420a78a]131PLU_IMAGES_HTML := $(IMAGES:%=${PLU_HTML_SUBDIR}/%)
[877605]132
[f36635]133# prepend bindir to path so that programs from there are taken first
134export PATH := "${bindir}:${PATH}"
135
[65a2bd]136###########################################################
137# top targets
138#
139
140.PHONY: info dvi ps html
141
[bfb256]142# default target
[0a2ba89]143all: info dvi html singular.idx
[bfb256]144
145# info stuff
[3de58c]146info: singular.hlp
[d30e2a8]147
[59c08e]148singular.hlp: ${MANUAL_FILES} singular.tex s-plural.tex
[d30e2a8]149        - ${MAKEINFO} --no-split singular.tex
150
[a5bc69]151plural.hlp:  ${PLU_MANUAL_FILES} p-pluralmain.tex
152        - ${MAKEINFO} --no-split -o plural.hlp p-pluralmain.tex
[213882]153
[bfb256]154# dvi stuff
[dc3a44]155dvi: manual.dvi usercard.dvi
156
[59c08e]157s-plural.tex: plural.tex ${PLU_MANUAL_FILES}
158        for PFILE in ${PLU_MANUAL_FILES};\
159        do \
[a5bc69]160                sed 's/@value{PSUFFIX}/(plural)/g' < $${PFILE}  >s-$${PFILE};\
[59c08e]161        done
162        sed -e 's/@include plu/@include s-plu/' -e 's/@value{PSUFFIX}/(plural)/g' < plural.tex >s-plural.tex
163
[979aa58]164p-pluralmain.tex: plural.tex pluralmain.tex ${PLU_MANUAL_FILES}
[ca461a]165        for PFILE in ${PLU_MANUAL_FILES};\
166        do \
[979aa58]167                sed -e 's/@value{PSUFFIX}//g' -e 's/@include plu/@include p-plu/' < $${PFILE}  >p-$${PFILE};\
[59c08e]168        done
[979aa58]169        sed -e 's/@include plu/@include p-plu/' -e 's/@value{PSUFFIX}//g' < pluralmain.tex >p-pluralmain.tex
[a5bc69]170
171singular.dvi: ${MANUAL_FILES} singular.tex s-plural.tex
172        ${TEXI2DVI} singular.tex
173
[175c56]174singular.pdf: ${MANUAL_FILES} singular.tex s-plural.tex
175        ${TEXI2PDF} singular.tex
176
[a5bc69]177plural.dvi: ${PLU_MANUAL_FILES} p-pluralmain.tex
178        ${TEXI2DVI} p-pluralmain.tex; mv p-pluralmain.dvi plural.dvi
[ca461a]179
[6fe0f6]180plural.pdf: ${PLU_MANUAL_FILES} p-pluralmain.tex
181        ${TEXI2PDF} p-pluralmain.tex; mv p-pluralmain.pdf plural.pdf
182
[a5bc69]183manual.dvi: ${MANUAL_FILES} manual.tex s-plural.tex
[dc3a44]184        ${TEXI2DVI} manual.tex
[d30e2a8]185
[3de58c]186tutor.dvi: ${TUTOR_FILES}
[bfb256]187        ${TEXI2DVI} tutor.tex
[d30e2a8]188
[6fe0f6]189tutor.pdf: ${TUTOR_FILES}
190        ${TEXI2PDF} tutor.tex
191
[ddf961]192usercard.dvi: usercard.tex singcard.tex
193        ${TEX} $<
194
[bfb256]195# postscript stuff
[44a55c]196ps: dvi manual.ps usercard.ps
[bfb256]197
198usercard.ps: usercard.dvi
[33471f8]199        ${DVIPS} -t landscape -t a4 $< -o $@
[bfb256]200
201%.ps: %.dvi
202        ${DVIPS} $< -o $@
203
[65a2bd]204###########################################################
205# texinfo targets
206#
[53c00b]207manual.tex:  ${MANUAL_FILES} doc2tex.pl ${SINGULAR} singular.doc $(STANDALONE_TEXI_FILES)
[65a2bd]208        ${DOC2TEX} -no_fun -o manual.tex singular.doc
[bfb256]209
[6dd750]210singular.tex: ${MANUAL_FILES} doc2tex.pl ${LIB_TEX_FILES} ${SINGULAR} ${LIBPARSE} singular.doc $(STANDALONE_TEXI_FILES) ${PLU_MANUAL_FILES}
[65a2bd]211        ${DOC2TEX} -o singular.tex singular.doc
[9c935cb]212
[643fbb]213pluralmain.tex: ${PLU_MANUAL_FILES} doc2tex.pl ${PLU_LIB_TEX_FILES} ${SINGULAR} ${LIBPARSE} pluralmain.doc $(PLU_STANDALONE_TEXI_FILES)
[6dd750]214        ${DOC2TEX} -o pluralmain.tex pluralmain.doc
[32bcf8]215
[65a2bd]216#pattern rule for tex files
217%_noEx.tex : %.doc doc2tex.pl ${SINGULAR}
218        ${DOC2TEX} -o $@ -no_ex $<
[f36635]219
[3de58c]220%.tex: %.doc doc2tex.pl ${SINGULAR}
[65a2bd]221        ${DOC2TEX} -o $@ $<
[f36635]222
[65a2bd]223# pattern rules for lib docus
[c04b94]224${DOC_SUBDIR}/%_lib.pl : ${SINGULAR_LIB_DIR}/%.lib ${LIBPARSE}
225        test -d ${DOC_SUBDIR} || mkdir ${DOC_SUBDIR}
[65a2bd]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
[c04b94]235.PRECIOUS: %.doc %_noFun.doc ${DOC_SUBDIR}/%_lib.pl
[f36635]236
[0a2ba89]237# index file for help
[6d5a600]238singular.idx: singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx doc2idx.pl
[a70441f]239        ${PERL} doc2idx.pl singular.hlp ${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx ${CHKSUM_DB} > singular.idx
[dcc635]240
[213882]241plural.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
[e3663f1]244###########################################################
245# stand-alone targest
246#
247
[3de58c]248STANDALONE_TXT_FILES := $(STANDALONE_TEXI_FILES:.texi=.txt)
[e3663f1]249STANDALONE_HTML_FILES := $(STANDALONE_TEXI_FILES:.texi=.html)
250STANDALONE_FILES      := $(STANDALONE_TEXI_FILES:.texi=)
251
[643fbb]252PLU_STANDALONE_TXT_FILES := $(PLU_STANDALONE_TEXI_FILES:.texi=.txt)
253PLU_STANDALONE_HTML_FILES := $(PLU_STANDALONE_TEXI_FILES:.texi=.html)
254PLU_STANDALONE_FILES      := $(PLU_STANDALONE_TEXI_FILES:.texi=)
255
[1a1f587]256ifeq ($(SINGUNAME),@SINGUNAME@)
257UNAME_OPT = -D UNAME
258endif
259
[f36635]260# targets which produce stand-alone documents
[354f3b]261%.${SINGUNAME}.txt : %.texi
[1a1f587]262        ${MAKEINFO} $(UNAME_OPT) --no-header --paragraph-indent none  -o $@ $<
[354f3b]263
[e3663f1]264%.txt :  %.texi
265        ${MAKEINFO} --no-header --paragraph-indent none -o $@ $<
266
[354f3b]267%.${SINGUNAME}.html : %.texi
[3cc667]268        ${PERL} ${TEXI2HTML} $(UNAME_OPT) -init_file t2h_standalone.init -split none -out_file $@ $<
[354f3b]269
[e3663f1]270%.html : %.texi
[3cc667]271        ${PERL} ${TEXI2HTML} -init_file t2h_standalone.init -split none -out_file $@ $<
[e3663f1]272
273% : %.txt
274        cp $< $@
275
276standalone: standalone-txt standalone-html ${STANDALONE_FILES}
277
278standalone-html: ${STANDALONE_HTML_FILES}
279standalone-txt:  ${STANDALONE_TXT_FILES}
280
[643fbb]281standalone-plural: standalone-txt-plural standalone-html-plural ${PLU_STANDALONE_FILES}
282
283standalone-html-plural: ${PLU_STANDALONE_HTML_FILES}
284standalone-txt-plural:  ${PLU_STANDALONE_TXT_FILES}
285
286
[9ad738c]287WWW_DIR = /singular/www/2-0/
288FTP_DIR = /ftp/pub/Math/Singular/Development
289
290install-standalone: standalone
[ec8a650]291        cp INSTALL_unix.html COPYING.html INSTALL_win.html ${WWW_DIR}
[9ad738c]292        cp COPYING COPYING.html ${FTP_DIR}
293        cp INSTALL_unix INSTALL_unix.html ${FTP_DIR}
[bde8dd]294        cp INSTALL_win INSTALL_win.html ${FTP_DIR}
[9ad738c]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
[bfb256]302
[65a2bd]303###########################################################
304# html targets
305#
[e0101d]306html: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_MANUAL_TOP} ${IMAGES_HTML} $(STANDALONE_TEXI_FILES)
[d462b24]307${HTML_SUBDIR}/${HTML_MANUAL_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} singular.tex s-plural.tex
[a70441f]308        ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_MANUAL_PREFIX} \
[65a2bd]309        -top_file ${HTML_MANUAL_TOP} singular.tex
[877605]310
[643fbb]311plu_html: pluralmain.tex ${PLU_MANUAL_FILES} ${TMP_DIR} ${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP} ${PLU_IMAGES_HTML} $(PLU_STANDALONE_TEXI_FILES)
[213882]312${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} plural.tex
313        ${PERL} ${TEXI2HTML} ${PLU_TEXI2HTML_OPTS} -prefix ${PLU_HTML_MANUAL_PREFIX} \
[6dd750]314        -top_file ${HTML_MANUAL_TOP} pluralmain.tex
[213882]315
[65a2bd]316# html stuff
[e0101d]317html_tutor: ${TMP_DIR} ${HTML_SUBDIR}/${HTML_TUTOR_TOP} ${IMAGES_HTML}
[65a2bd]318${HTML_SUBDIR}/${HTML_TUTOR_TOP}: ${TEXI2HTML_INIT} ${TEXI2HTML} tutor.tex
[a70441f]319        ${PERL} ${TEXI2HTML} ${TEXI2HTML_OPTS} -prefix ${HTML_TUTOR_PREFIX} \
[65a2bd]320        -top_file ${HTML_TUTOR_TOP} tutor.tex
[877605]321
[0a2ba89]322${HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx: ${HTML_SUBDIR}/${HTML_MANUAL_TOP}
323
[643fbb]324${PLU_HTML_SUBDIR}/${HTML_MANUAL_PREFIX}_cp.idx: ${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP}
325
[e0101d]326${TMP_DIR}:
327        ${MKINSTALLDIRS} ${TMP_DIR}
328
[5faa8fd]329# pattern rules for images - but not everybody has gnu-uudecode
[877605]330images/%.gif : images/%.gif.uu
[a70441f]331        cd images; ${UUDECODE} ../$< ;cd ..
[877605]332
333images/%.jpg : images/%.jpg.uu
[a70441f]334        cd images; ${UUDECODE} ../$< ;cd ..
[877605]335
336images/%.xbm : images/%.xbm.uu
[a70441f]337        cd images; ${UUDECODE} ../$< ;cd ..
[bfb256]338
[3de58c]339${IMAGES_HTML} : ${IMAGES_SRC}
[14fed1]340        test -d ${HTML_SUBDIR} || mkdir ${HTML_SUBDIR}
341        cp ${IMAGES_SRC} ${HTML_SUBDIR}
[65a2bd]342
[213882]343${PLU_IMAGES_HTML} : ${IMAGES_SRC}
344        test -d ${PLU_HTML_SUBDIR} || mkdir ${PLU_HTML_SUBDIR}
345        cp ${IMAGES_SRC} ${PLU_HTML_SUBDIR}
346
[65a2bd]347
348
349###########################################################
350# misc targets
351#
[822e93b]352install: singular.hlp html singular.idx standalone
[d30e2a8]353        ${MKINSTALLDIRS} ${infodir}
354        ${INSTALL_DATA} singular.hlp ${infodir}
[1464878]355        test -r ${htmldir} || ln -s `pwd`/${HTML_SUBDIR} ${htmldir}
[c04b94]356        test -r ${exdir} || ln -s `pwd`/${EX_SUBDIR} ${exdir}
[d30e2a8]357
[643fbb]358install-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
[3de58c]364uninstall:
[d30e2a8]365        rm -f ${infodir}/singular.hlp
366        - rmdir ${infodir}
367
[a0b99e]368#stupid HP's don't allow copy with many arguments
[2dd25c]369install-sharedist: singular.hlp html singular.idx \
[c1cd11]370                   ${STANDALONE_HTML_FILES} ${STANDALONE_TXT_FILES}
[119b42]371        ${MKINSTALLDIRS} ${install_prefix}
[4b72f6]372        ${MKINSTALLDIRS} ${install_infodir}
373        ${INSTALL_DATA} singular.hlp ${install_infodir}
[685b4c]374        chmod -R +rX ${install_infodir}
[3de58c]375        ${MKINSTALLDIRS} ${install_htmldir}
[8543df4]376        cp ${HTML_SUBDIR}/*.htm ${install_htmldir}
377        cp ${HTML_SUBDIR}/*.gif ${install_htmldir}
[6e0d73]378        cp ${HTML_SUBDIR}/*.jpg ${install_htmldir}
[a1e05c]379        chmod -R +rX ${install_htmldir}
[4b72f6]380        ${MKINSTALLDIRS} ${install_docdir}
381        ${INSTALL_DATA} singular.idx ${install_docdir}
[cc28f4b]382        ${INSTALL_DATA} ../GPL2 ${install_prefix}/GPL2
383        ${INSTALL_DATA} ../GPL3 ${install_prefix}/GPL3
[119b42]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}
[c84d678]388        ${INSTALL_DATA} README_distribution.txt ${install_prefix}/README
389        ${INSTALL_DATA} README_distribution.html ${install_prefix}/README.html
[685b4c]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}/
[c84d678]399
[b2a9bf]400install-sharedist-plural: plural.hlp plu_html plural.idx \
[643fbb]401                   ${PLU_STANDALONE_HTML_FILES} ${PLU_STANDALONE_TXT_FILES}
402        ${MKINSTALLDIRS} ${install_prefix}
403        ${MKINSTALLDIRS} ${install_infodir}
[1547c7]404        ${INSTALL_DATA} plural.hlp ${install_infodir}/singular.hlp
[643fbb]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}
[1547c7]413        ${INSTALL_DATA} plural.idx ${install_docdir}/singular.idx
[cc28f4b]414        ${INSTALL_DATA} ../GPL2 ${install_prefix}/GPL2
415        ${INSTALL_DATA} ../GPL3 ${install_prefix}/GPL3
[643fbb]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
[1a1f587]433# use 'make INSTALL_unix.olaf.txt INSTALL_unix.olaf.html SINGUNAME=olaf'
434# to generate these files for uname 'olaf'
[354f3b]435install-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
[643fbb]440install-bindist-plural:
441        ${MAKE} install-bindist SINGUNAME=plural
442
[a94090]443install-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
[f00b02]453texi2html = $(TEXI2HTML:%.pl=%)
454
[8a0ba8]455lib2doc.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
[f00b02]460        cp pl2doc.pl doc2tex.pl ${texi2html} lib2doc
[8a0ba8]461        tar cf lib2doc.tar lib2doc
[9ead31]462        ${GZIP} lib2doc.tar
[8a0ba8]463
[0a2ba89]464clean: mostlyclean
[c04b94]465        /bin/rm -rf singular.tex manual.tex ${DOC_SUBDIR} ${EX_SUBDIR}
[0a2ba89]466
[3de58c]467mostlyclean:
[bfb256]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
[0a2ba89]472        /bin/rm -f *.tps *.vr *.vrs *.dvi *.ps
[979aa58]473        /bin/rm -f s-*.tex p-*.tex
[0a2ba89]474        /bin/rm -f singular.hlp manual.hlp  ${DOC2TEX_FILES} singular.idx
[b76972]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}
[213882]477        /bin/rm -f ${PLU_HTML_SUBDIR}/${HTML_MANUAL_TOP} ${PLU_HTML_SUBDIR}/${HTML_TUTOR_TOP}
[e3663f1]478        /bin/rm -rf ${STANDALONE_HTML_FILES} ${STANDALONE_FILES} ${STANDALONE_TXT_FILES}
[354f3b]479        /bin/rm -f INSTALL_unix.${SINGUNAME}.txt INSTALL_unix.${SINGUNAME}.html
[d30e2a8]480
[0a2ba89]481distclean: clean
[bfb256]482        /bin/rm -f Makefile
[33c96a]483        /bin/rm -rf ${HTML_SUBDIR} ../html ../examples
[213882]484        /bin/rm -rf ${PLU_HTML_SUBDIR} ../html ../examples
[d30e2a8]485
486maintainer-clean: distclean
487
[bfb256]488${SINGULAR}:
489#       cd ..; ${MAKE} ${SINGULAR}
[d30e2a8]490
491Makefile: Makefile.in
[755779]492        cd ..;  CONFIG_FILES="doc/Makefile" CONFIG_HEADERS= ./config.status
[717a9e]493
494html-done: ${MANUAL_FILES}
Note: See TracBrowser for help on using the repository browser.