# mac -- Macintosh Library Modules
# ref -- Python Reference Manual
# tut -- Python Tutorial
+# inst -- Installing Python Modules
+# dist -- Distributing Python Modules
#
# The latex sources for each of these documents are in subdirectories
# with the three-letter designations above as the directory names.
# These must be declared phony since there
# are directories with matching names:
-.PHONY: api doc ext lib mac ref tut
+.PHONY: api doc ext lib mac ref tut inst dist
.PHONY: html info longhtml
tut tut.ps:
(cd paper-$(PAPER); $(MAKE) tut.ps)
+inst inst.ps:
+ (cd paper-$(PAPER); $(MAKE) inst.ps)
+
+dist dist.ps:
+ (cd paper-$(PAPER); $(MAKE) dist.ps)
+
api.dvi:
(cd paper-$(PAPER); $(MAKE) api.dvi)
tut.dvi:
(cd paper-$(PAPER); $(MAKE) tut.dvi)
+inst.dvi:
+ (cd paper-$(PAPER); $(MAKE) inst.dvi)
+
+dist.dvi:
+ (cd paper-$(PAPER); $(MAKE) dist.dvi)
+
api.pdf:
(cd paper-$(PAPER); $(MAKE) api.pdf)
tut.pdf:
(cd paper-$(PAPER); $(MAKE) tut.pdf)
+inst.pdf:
+ (cd paper-$(PAPER); $(MAKE) inst.pdf)
+
+dist.pdf:
+ (cd paper-$(PAPER); $(MAKE) dist.pdf)
+
# The remaining part of the Makefile is concerned with various
# conversions, as described above. See also the README file.
htmltut:
(cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile tut)
+htmlinst:
+ (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile inst)
+
+htmldist:
+ (cd $(HTMLDIR); $(MAKE) PAPER=$(PAPER) -f ../html/Makefile dist)
+
longhtml:
(cd longhtml; $(MAKE) PAPER=$(PAPER))
../mac/libmacic.tex \
../mac/libframework.tex \
../mac/libminiae.tex
+
+INSTFILES = $(HOWTOSTYLES) $(COMMONTEX) ../inst/inst.tex
+
+DISTFILES = $(HOWTOSTYLES) $(COMMONTEX) ../dist/dist.tex
mac/*.tex Macintosh Library Modules
ref/*.tex Python Reference Manual
tut/*.tex Python Tutorial
+ inst/*.tex Installing Python Modules
+ dist/*.tex Distributing Python Modules
Most use the "manual" document class and "python" package, derived from
the old "myformat.sty" style file. The Macintosh Library Modules
# what's what
MANDVIFILES= api.dvi ext.dvi lib.dvi ref.dvi tut.dvi
-HOWTODVIFILES= doc.dvi mac.dvi
+HOWTODVIFILES= doc.dvi mac.dvi inst.dvi dist.dvi
MANPDFFILES= api.pdf ext.pdf lib.pdf ref.pdf tut.pdf
-HOWTOPDFFILES= doc.pdf mac.pdf
+HOWTOPDFFILES= doc.pdf mac.pdf inst.pdf dist.pdf
MANPSFILES= api.ps ext.ps lib.ps ref.ps tut.ps
-HOWTOPSFILES= doc.ps mac.ps
+HOWTOPSFILES= doc.ps mac.ps inst.ps dist.ps
DVIFILES= $(MANDVIFILES) $(HOWTODVIFILES)
PDFFILES= $(MANPDFFILES) $(HOWTOPDFFILES)
api.tex: ../api/api.tex ../api/refcounts.dat ../tools/anno-api.py
$(PYTHON) ../tools/anno-api.py -o $@ ../api/api.tex
+# Distributing Python Modules
+dist.dvi: $(DISTFILES)
+ $(MKHOWTO) --dvi ../dist/dist.tex
+
+dist.pdf: $(DISTFILES)
+ $(MKHOWTO) --pdf ../dist/dist.tex
+
# Documenting Python
doc.dvi: $(DOCFILES)
$(MKHOWTO) --dvi ../doc/doc.tex
ext.pdf: $(EXTFILES)
$(MKPDF) ext
+# Installing Python Modules
+inst.dvi: $(INSTFILES)
+ $(MKHOWTO) --dvi ../inst/inst.tex
+
+inst.pdf: $(INSTFILES)
+ $(MKHOWTO) --pdf ../inst/inst.tex
+
# Python Library Reference
lib.dvi: $(LIBFILES)
$(MKDVI) lib