Changeset bfb256 in git for doc/Makefile.in


Ignore:
Timestamp:
Jun 9, 1998, 5:18:19 PM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
74a961099955876c693f932fca932f844cdcac69
Parents:
7885aa876c9efd1d5f54f1c2a486483b635e15c2
Message:
	* Makefile.in: Major clean up.  Many doc fixes.

	* Makefile.in (${SINGULAR}, Makefile): `cd ${prefix}' replaced by
	  `cd ..'

	* Makefile.in (Makefile): bug fix

	* Makefile.in (clean, mostlyclean, distclean, maintainer-clean):
	  completely rewritten

	* Makefile.in (%.tex): issues a warning

	* Makefile.in (TEXI2DVI): new variable
	  (tutor.dvi, singular.dvi): uses `texi2info' instead of `tex' to
	  translate texi sources

	* Makefile.in (SINGULAR_OBJS): renamed to `DOC2TEX_FILES'.  All
	  references changed.
	  (MANUAL_FILES, TUTOR_FILES, tutor.dvi, singular.hlp,
	   singular.dvi, html): new variables referenced in the
	  corresponding targets

	* Makefile.in (singular.hlp, singular.dvi, html): explicit
	  dependency on `Makefile' removed

	* Makefile.in (all): dependency `html' added
	  (html): several bug fixes, clean-up

	* Makefile.in (ps): target rewritten.  Depends on `usercard.ps'
	  and `%.ps'.
	  (usercard.ps, %.ps): new targets


git-svn-id: file:///usr/local/Singular/svn/trunk@2111 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/Makefile.in

    r7885aa8 rbfb256  
    2727TEX             = tex
    2828MAKEINFO        = makeinfo
     29TEXI2DVI        = texi2dvi
    2930TEXINDEX        = texindex
    3031DVIPS           = dvips
     
    3435## End configuration dependend stuff
    3536#################################################################
    36 #
    37 # examples, general, math, reference,
    38 # singular, start, types
    39 #SINGULAR_OBJS= copyright.tex proc.tex
    40 TEX_FILES = copyright.tex # proc.tex
    41 SINGULAR_OBJS= examples.tex general.tex math.tex reference.tex \
    42         singular.tex start.tex types.tex pdata.tex
    4337
    44 all: info dvi
     38# files
     39TEX_FILES       = copyright.tex
     40DOC2TEX_FILES   = \
     41                examples.tex general.tex math.tex reference.tex \
     42                singular.tex start.tex types.tex pdata.tex
    4543
     44MANUAL_FILES    = ${TEX_FILES} ${DOC2TEX_FILES}
     45TUTOR_FILES     = \
     46                tutor.tex examples.tex start.tex proc.tex copyright.tex
     47
     48# default target
     49all: info dvi html
     50
     51# info stuff
    4652info: singular.hlp
    4753
    48 singular.hlp: ${SINGULAR_OBJS} ${TEX_FILES} Makefile
     54singular.hlp: ${MANUAL_FILES}
    4955        - ${MAKEINFO} --no-split singular.tex
    5056
    51 html: ${SINGULAR_OBJS} ${TEX_FILES} Makefile
    52         if [ ! -d html ]; then
    53                 mkdir html
    54         fi
    55         (cd html; \
    56         ../texi2html -I .. -menu -expandinfo -number -split_chapter -verbose ../singular.tex;\
    57         )
    58         touch html-done
    59 
     57# dvi stuff
    6058dvi: singular.dvi tutor.dvi usercard.dvi
    6159
    62 ps: dvi
    63         ${DVIPS} singular.dvi -o
    64         ${DVIPS} tutor.dvi -o
    65         ${DVIPS} usercard.dvi  -o
     60singular.dvi: ${MANUAL_FILES}
     61        ${TEXI2DVI} singular.tex
    6662
    67 singular.dvi:  ${SINGULAR_OBJS} ${TEX_FILES} Makefile
    68         ${TEX} singular.tex
    69         ${TEX} singular.tex
    70         ${TEXINDEX} singular.??
    71         ${TEX} singular.tex
    72 
    73 tutor.dvi: tutor.tex examples.tex start.tex proc.tex copyright.tex
    74         ${TEX} tutor.tex
    75         ${TEX} tutor.tex
    76         ${TEXINDEX} tutor.??
    77         ${TEX} tutor.tex
     63tutor.dvi: ${TUTOR_FILES}
     64        ${TEXI2DVI} tutor.tex
    7865
    7966usercard.dvi: usercard.tex singcard.tex
    8067        ${TEX} $<
    8168
     69# postscript stuff
     70ps: singular.ps tutor.ps usercard.ps
     71
     72usercard.ps: usercard.dvi
     73        ${DVIPS} -t landscape $< -o $@
     74
     75%.ps: %.dvi
     76        ${DVIPS} $< -o $@
     77
     78# html stuff
     79html: ${MANUAL_FILES}
     80        test -d html || mkdir html
     81        cd html && ../texi2html -I .. -menu -expandinfo -number -split_node -verbose ../singular.tex
     82
     83# how to create the texinfo files
     84%.tex: %.doc doc2tex ${SINGULAR}
     85        @ echo
     86        @ echo "Be sure Singular is up-to-date before making the examples!"
     87        @ echo
     88        ./doc2tex ${SINGULAR} $*
     89        - grep "error occurred" $@
     90
     91doc2tex: doc2tex.c
     92        $(CC) doc2tex.c -o doc2tex
     93
     94# targets concerned with maintenance
    8295install:
    8396        ${MKINSTALLDIRS} ${infodir}
     
    89102
    90103clean:
    91         /bin/rm -f Z* doc2tex example.* save_i *~ *.tst manual.lst doe core
    92         /bin/rm -f singular.?? singular.??s singular.aux singular.log singular.toc
    93         /bin/rm -f tutor.?? tutor.??s tutor.aux tutor.log tutor.toc *.lst
    94         /bin/rm -f doe* singular.info
     104        /bin/rm -f .singular_hist doe.tmp dump.ascii example.mp example.txt
     105        /bin/rm -f save_i test.ascii test.mp
     106        /bin/rm -f Z* *.tst *.pag *.dir *.lst *.log *.aux *.cp *.cps
     107        /bin/rm -f *.fn *.fns *.ky *.kys *.log *.pg *.pgs *.toc *.tp
     108        /bin/rm -f *.tps *.vr *.vrs
     109        /bin/rm -f doc2tex singular.hlp *.dvi *.ps ${DOC2TEX_FILES}
     110        /bin/rm -rf html
    95111
    96112mostlyclean: clean
    97113
    98 distclean: clean
    99         /bin/rm -f Makefile *.ps
     114distclean: mostlyclean
     115        /bin/rm -f Makefile
    100116
    101117maintainer-clean: distclean
    102         @echo "This command is intended for maintainers to use;"
    103         @echo "Rebuilding the deleted files requires makeinfo, tex and texindex"
    104         /bin/rm -f *.dvi singular.hlp configure ${SINGULAR_OBJS}
    105118
    106 %.tex: %.doc doc2tex ${SINGULAR}
    107         ./doc2tex ${SINGULAR} $*
    108         -grep "error occurred" $@
    109 
    110 doc2tex: doc2tex.c
    111         $(CC) doc2tex.c -o doc2tex
    112 
    113 ${SINGULAR}:
    114         cd ..; ${MAKE} ${SINGULAR}
     119${SINGULAR}:
     120#       cd ..; ${MAKE} ${SINGULAR}
    115121
    116122Makefile: Makefile.in
    117         cd ..; ${MAKE} Makefile
    118 
    119 #examples.tex: examples.doc
    120 #general.tex: general.doc
    121 #math.tex: math.doc
    122 #reference.tex: reference.doc
    123 #singular.tex: singular.doc
    124 #start.tex: start.doc
    125 #types.tex: types.doc
    126 #pdata.tex: pdata.doc
     123        cd ..; ${MAKE} doc/Makefile
Note: See TracChangeset for help on using the changeset viewer.