Ilya Zakharevich on Thu, 21 Jan 1999 00:06:42 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PATCH] Make online books for PARI


This assumes the patch for gphelp I sent several minutes ago.

Ilya

--- ./config/doc_Makefile.SH.orig	Fri Oct 16 11:51:16 1998
+++ ./config/doc_Makefile.SH	Wed Jan 20 23:00:20 1999
@@ -9,6 +9,8 @@ docps: refcard.ps tutorial.ps users.ps
 manual: users.dvi
 tutorial: tutorial.dvi
 
+.SUFFIXES: .tex .ipf .pod .inf
+
 macros.tex: macros.tex.in
 	sed -e 's/@version@/$version.$patch/'\\
 	    -e 's!@miscdir@!/usr/local/lib/pari!' macros.tex.in > \$@
@@ -52,4 +54,13 @@ clean: halfclean	
 
 veryclean: clean
 	rm -f macros.tex gp.man
+
+.tex.pod:
+	perl ../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 \$@
 EOT