PYTHON= python
DVIPS= dvips -N0 -t $(PAPER)
+PWD=$(shell pwd)
+
+# (The trailing colon in the value is needed; TeX places it's default
+# set of paths at the location of the empty string in the path list.)
+#
+TEXINPUTS=$(PWD)/commontex:
+
# This is ugly! The issue here is that there are two different levels
# in the directory tree at which we execute mkhowto, so we can't
# define it just once using a relative path (at least not with the
# $(shell) function here to work around that restriction by
# identifying mkhowto using an absolute path.
#
-MKHOWTO= $(PYTHON) $(shell pwd)/tools/mkhowto
+MKHOWTO= TEXINPUTS=$(TEXINPUTS) $(PYTHON) $(PWD)/tools/mkhowto
MKDVI= $(MKHOWTO) --paper=$(PAPER) --dvi
MKHTML= $(MKHOWTO) --html --about html/stdabout.dat \
INDEXSTYLES=texinputs/python.ist
-COMMONTEX= texinputs/copyright.tex \
- texinputs/license.tex \
- texinputs/boilerplate.tex
+COMMONTEX=commontex/copyright.tex \
+ commontex/license.tex \
+ commontex/boilerplate.tex
MANSTYLES= texinputs/fncychap.sty \
texinputs/manual.cls \
api/refcounting.tex \
api/utilities.tex \
api/veryhigh.tex \
- texinputs/typestruct.h \
- texinputs/reportingbugs.tex
+ commontex/typestruct.h \
+ commontex/reportingbugs.tex
# These files are generated from those listed above, and are used to
# generate the typeset versions of the manuals. The list is defined
paper-$(PAPER)/refcounting.tex \
paper-$(PAPER)/utilities.tex \
paper-$(PAPER)/veryhigh.tex \
- texinputs/reportingbugs.tex
+ commontex/reportingbugs.tex
DOCFILES= $(HOWTOSTYLES) \
- texinputs/boilerplate.tex \
+ commontex/boilerplate.tex \
texinputs/ltxmarkup.sty \
doc/doc.tex
ext/noddy3.c \
ext/noddy4.c \
ext/run-func.c \
- texinputs/typestruct.h \
- texinputs/reportingbugs.tex
+ commontex/typestruct.h \
+ commontex/reportingbugs.tex
TUTFILES= tut/tut.tex tut/glossary.tex $(MANSTYLES) $(COMMONTEX)
# LaTeX source files for the Python Library Reference
LIBFILES= $(MANSTYLES) $(INDEXSTYLES) $(COMMONTEX) \
- texinputs/reportingbugs.tex \
+ commontex/reportingbugs.tex \
lib/lib.tex \
lib/asttable.tex \
lib/compiler.tex \