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!).
This commit is contained in:
Fred Drake 2000-10-26 19:26:47 +00:00
parent 956698819f
commit ca92eeba6f

View file

@ -1,9 +1,7 @@
# 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 \
$(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)
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
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) $(HTMLDIR)/api/api.html:
(cd $(TOPDIR); $(MAKE) htmlapi) (cd $(HTMLDIR); $(MAKE) api)
$(HTMLDIR)/ext/ext.html: $(PAPERDIR)/ext.aux $(HTMLDIR)/ext/ext.html:
(cd $(TOPDIR); $(MAKE) htmlext) (cd $(HTMLDIR); $(MAKE) ext)
$(HTMLDIR)/lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX) $(HTMLDIR)/lib/lib.html:
(cd $(TOPDIR); $(MAKE) htmllib) (cd $(HTMLDIR); $(MAKE) lib)
$(HTMLDIR)/mac/mac.html: $(MACFILES) $(BUILDINDEX) $(HTMLDIR)/mac/mac.html:
(cd $(TOPDIR); $(MAKE) htmlmac) (cd $(HTMLDIR); $(MAKE) mac)
$(HTMLDIR)/ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX) $(HTMLDIR)/ref/ref.html:
(cd $(TOPDIR); $(MAKE) htmlref) (cd $(HTMLDIR); $(MAKE) ref)
$(HTMLDIR)/tut/tut.html: $(PAPERDIR)/tut.aux $(HTMLDIR)/tut/tut.html:
(cd $(TOPDIR); $(MAKE) htmltut) (cd $(HTMLDIR); $(MAKE) tut)
$(HTMLDIR)/dist/dist.html:
(cd $(HTMLDIR); $(MAKE) dist)
include ../Makefile.deps $(HTMLDIR)/inst/inst.html:
(cd $(HTMLDIR); $(MAKE) inst)
$(PAPERDIR)/api.aux: $(APIFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
$(PAPERDIR)/ext.aux: $(EXTFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
$(PAPERDIR)/lib.aux: $(LIBFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
$(PAPERDIR)/ref.aux: $(REFFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
$(PAPERDIR)/tut.aux: $(TUTFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)