Kaydet (Commit) ca92eeba authored tarafından Fred Drake's avatar Fred Drake

Update the dependency information to allow the other Makefiles to handle

as much of this as possible.  Avoids propogating information about how
various outputs relate (or don't!).
üst 95669881
# Generate the Python "info" documentation. # Generate the Python "info" documentation.
PAPER=letter
TOPDIR=.. TOPDIR=..
TOOLSDIR=$(TOPDIR)/tools TOOLSDIR=$(TOPDIR)/tools
PAPERDIR=$(TOPDIR)/paper-$(PAPER)
HTMLDIR=$(TOPDIR)/html HTMLDIR=$(TOPDIR)/html
MKINFO=$(TOOLSDIR)/mkinfo MKINFO=$(TOOLSDIR)/mkinfo
...@@ -11,7 +9,8 @@ SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo \ ...@@ -11,7 +9,8 @@ SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo \
$(TOOLSDIR)/fixinfo.el $(TOOLSDIR)/fixinfo.el
all: python-api.info python-ext.info python-lib.info \ all: python-api.info python-ext.info python-lib.info \
python-ref.info python-tut.info python-ref.info python-tut.info \
python-dist.info python-inst.info
python-api.info: $(HTMLDIR)/api/api.html $(SCRIPTS) python-api.info: $(HTMLDIR)/api/api.html $(SCRIPTS)
...@@ -33,6 +32,11 @@ python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS) ...@@ -33,6 +32,11 @@ python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS)
python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS) python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS)
$(MKINFO) $< $(MKINFO) $<
python-dist.info: $(HTMLDIR)/dist/dist.html $(SCRIPTS)
$(MKINFO) $<
python-inst.info: $(HTMLDIR)/inst/inst.html $(SCRIPTS)
$(MKINFO) $<
clean: clean:
rm -f *.texi~ *.texi rm -f *.texi~ *.texi
...@@ -41,42 +45,29 @@ clobber: clean ...@@ -41,42 +45,29 @@ clobber: clean
rm -f *.texi python-*.info python-*.info-[0-9]* rm -f *.texi python-*.info python-*.info-[0-9]*
# The HTML files are dependent on the .aux files, which are dependent on the # This makes sure we can build info files from a "clean" tree,
# LaTeX source documents. This makes sure we can build info files from a # in case we haven't already built the HTML:
# "clean" tree:
$(HTMLDIR)/api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
(cd $(TOPDIR); $(MAKE) htmlapi)
$(HTMLDIR)/ext/ext.html: $(PAPERDIR)/ext.aux
(cd $(TOPDIR); $(MAKE) htmlext)
$(HTMLDIR)/lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX)
(cd $(TOPDIR); $(MAKE) htmllib)
$(HTMLDIR)/mac/mac.html: $(MACFILES) $(BUILDINDEX)
(cd $(TOPDIR); $(MAKE) htmlmac)
$(HTMLDIR)/ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
(cd $(TOPDIR); $(MAKE) htmlref)
$(HTMLDIR)/tut/tut.html: $(PAPERDIR)/tut.aux $(HTMLDIR)/api/api.html:
(cd $(TOPDIR); $(MAKE) htmltut) (cd $(HTMLDIR); $(MAKE) api)
$(HTMLDIR)/ext/ext.html:
(cd $(HTMLDIR); $(MAKE) ext)
include ../Makefile.deps $(HTMLDIR)/lib/lib.html:
(cd $(HTMLDIR); $(MAKE) lib)
$(PAPERDIR)/api.aux: $(APIFILES) $(HTMLDIR)/mac/mac.html:
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi) (cd $(HTMLDIR); $(MAKE) mac)
$(PAPERDIR)/ext.aux: $(EXTFILES) $(HTMLDIR)/ref/ref.html:
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi) (cd $(HTMLDIR); $(MAKE) ref)
$(PAPERDIR)/lib.aux: $(LIBFILES) $(HTMLDIR)/tut/tut.html:
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi) (cd $(HTMLDIR); $(MAKE) tut)
$(PAPERDIR)/ref.aux: $(REFFILES) $(HTMLDIR)/dist/dist.html:
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi) (cd $(HTMLDIR); $(MAKE) dist)
$(PAPERDIR)/tut.aux: $(TUTFILES) $(HTMLDIR)/inst/inst.html:
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi) (cd $(HTMLDIR); $(MAKE) inst)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment