[BACK]Return to DOC_Make.SH CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari / config

File: [local] / OpenXM_contrib / pari / config / Attic / DOC_Make.SH (download)

Revision 1.1, Sun Jan 9 17:35:29 2000 UTC (24 years, 4 months ago) by maekawa
Branch: MAIN

Initial revision

cat > doc/Makefile << EOT
#  This file was created by Configure. Any change made to it will be lost
#  next time configure is run.
#
SHELL = $make_sh

doc all: manual refcard tutorial
docps: refcard.ps tutorial.ps users.ps
manual: users.dvi
tutorial: tutorial.dvi

.SUFFIXES: .tex .ipf .pod .inf

paricfg.tex: paricfg.tex.in
	sed -e 's/@version@/$version.$patch/'\\
	    -e 's!@includedir@!/usr/local/include/pari!'\\
	    -e 's!@libdir@!/usr/local/lib!'\\
	    -e 's!@miscdir@!/usr/local/lib/pari!' paricfg.tex.in > \$@

tutorial.dvi: tutorial.tex paricfg.tex
	tex tutorial.tex

refcard: refcard.ps

refcard.dvi: refcard.tex paricfg.tex
	tex refcard.tex

refcard.ps: refcard.dvi
	dvips -t landscape -t a4 refcard.dvi -o \$@

users.ps: users.dvi
	dvips users.dvi -o \$@

tutorial.ps: tutorial.dvi
	dvips tutorial.dvi -o \$@

users.dvi: users.tex appa.tex appb.tex appc.tex\\
 usersch1.tex usersch2.tex usersch3.tex usersch4.tex usersch5.tex\\
 paricfg.tex parimacro.tex
	rm -f users.std; tex users;
	sed -e 's/!\([1-9]\)!/!00\1!/'\\
	    -e 's/!\([1-9][0-9]\)!/!0\1!/'\\
	    -e 's/[{][}]//'\\
	  users.idx | sort -f |\\
	sed -e 's/!0*\([0-9]*\)!/!\1!/' > users.std;
	tex users; rm -f users.idx

gpman: gp.1
	nroff -man gp.1 | unix2dos -ascii > gp.man

halfclean:	
	rm -f *.log *.dvi *.idx *.ps tutorial.aux

clean: halfclean	
	rm -f users.aux users.std users.toc

veryclean: clean
	rm -f paricfg.tex gp.man

.tex.pod:
	perl $doc_dir/gphelp -to_pod \$*.tex > tmp_pod && mv tmp_pod \$*.pod

.ipf.inf:
	ipfc /INF \$*.ipf

pari.ipf:  refcard.pod tutorial.pod usersch1.pod usersch1.pod usersch2.pod usersch3.pod usersch4.pod usersch5.pod appa.pod appb.pod appc.pod appd.pod
	pod2ipf --title="PARI/GP Manual" --by-files --section-name="Getting started" --file=refcard.pod --file=tutorial.pod --section-name="User guide" --file=usersch1.pod --file=usersch1.pod --file=usersch2.pod --file=usersch3.pod --file=usersch4.pod --file=usersch5.pod --section-name=Appendices --file=appa.pod --file=appb.pod --file=appc.pod --file=appd.pod > tmp_ipf && mv tmp_ipf pari.ipf
EOT