| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 1 | # Convenience Makefile for building HTML documentation.  You probably need to | 
 | 2 | # set TEXINPUTS from the command line for this to be useful, unless you | 
 | 3 | # actually build the .dvi files in the top level directory. | 
 | 4 | # | 
 | 5 | # Note that the .dvi files must already be built and TEXINPUTS must include the | 
 | 6 | # directory where latex's working files (esp. *.aux) are kept. | 
 | 7 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 8 | PAPER=letter | 
| Fred Drake | f832f4c | 1998-08-11 19:36:35 +0000 | [diff] [blame] | 9 | TOPDIR=.. | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 10 | TOOLSDIR=$(TOPDIR)/tools | 
 | 11 | PAPERDIR=$(TOPDIR)/paper-$(PAPER) | 
| Fred Drake | f832f4c | 1998-08-11 19:36:35 +0000 | [diff] [blame] | 12 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 13 | TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs: | 
 | 14 |  | 
 | 15 | # Where are the various programs? | 
 | 16 | PYTHON=		python | 
 | 17 | WEBCHECKER=	$(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py | 
 | 18 | MKHTML=		PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh | 
 | 19 | KPSEWHICH=	TEXINPUTS=$(TEXINPUTS) kpsewhich tex | 
 | 20 |  | 
 | 21 | INDEXFILES=api/api.html \ | 
 | 22 | 	ext/ext.html \ | 
 | 23 | 	lib/lib.html \ | 
 | 24 | 	mac/mac.html \ | 
 | 25 | 	ref/ref.html \ | 
 | 26 | 	tut/tut.html | 
 | 27 |  | 
 | 28 | COMMONPERL= $(TOPDIR)/perl/manual.perl \ | 
| Fred Drake | 54c5205 | 1998-08-13 19:03:19 +0000 | [diff] [blame^] | 29 | 	$(TOPDIR)/perl/python.perl \ | 
 | 30 | 	$(TOPDIR)/perl/l2hinit.perl | 
| Fred Drake | f832f4c | 1998-08-11 19:36:35 +0000 | [diff] [blame] | 31 |  | 
 | 32 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 33 | all:	icons $(INDEXFILES) | 
 | 34 |  | 
 | 35 | .PHONY: api ext lib mac ref tut | 
 | 36 |  | 
 | 37 | api: icons api/api.html | 
 | 38 | ext: icons ext/ext.html | 
 | 39 | lib: icons lib/lib.html | 
 | 40 | mac: icons mac/mac.html | 
 | 41 | ref: icons ref/ref.html | 
 | 42 | tut: icons tut/tut.html | 
 | 43 |  | 
 | 44 | $(INDEXFILES): $(COMMONPERL) | 
 | 45 |  | 
 | 46 | api/api.html:  $(PAPERDIR)/api.aux | 
 | 47 | 	$(MKHTML) api $(L2HARGS) | 
 | 48 |  | 
 | 49 | ext/ext.html:  $(PAPERDIR)/ext.aux | 
 | 50 | 	$(MKHTML) ext $(L2HARGS) | 
 | 51 |  | 
 | 52 | lib/lib.html:  $(PAPERDIR)/lib.aux | 
 | 53 | 	$(TOOLSDIR)/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux | 
 | 54 | 	mv lib1.aux `$(KPSEWHICH) lib.aux` | 
 | 55 | 	$(MKHTML) lib $(L2HARGS) | 
 | 56 |  | 
 | 57 | mac/mac.html:  $(MACFILES) | 
 | 58 | 	$(TOOLSDIR)/mkhowto.sh --html $(TOPDIR)/mac/mac.tex | 
 | 59 |  | 
 | 60 | ref/ref.html:  $(PAPERDIR)/ref.aux | 
 | 61 | 	$(MKHTML) ref $(L2HARGS) | 
 | 62 |  | 
 | 63 | tut/tut.html:  $(PAPERDIR)/tut.aux | 
 | 64 | 	$(MKHTML) tut $(L2HARGS) | 
| Fred Drake | f832f4c | 1998-08-11 19:36:35 +0000 | [diff] [blame] | 65 |  | 
| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 66 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 67 | $(PAPERDIR)/api.aux: $(APIFILES) | 
 | 68 | 	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi) | 
| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 69 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 70 | $(PAPERDIR)/ext.aux: $(EXTFILES) | 
 | 71 | 	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi) | 
| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 72 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 73 | $(PAPERDIR)/lib.aux: $(LIBFILES) | 
 | 74 | 	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi) | 
| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 75 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 76 | $(PAPERDIR)/ref.aux: $(REFFILES) | 
 | 77 | 	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi) | 
| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 78 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 79 | $(PAPERDIR)/tut.aux: $(TUTFILES) | 
 | 80 | 	(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi) | 
| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 81 |  | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 82 | # copy the icons/ directory over... | 
| Fred Drake | 60515f4 | 1998-05-07 14:50:22 +0000 | [diff] [blame] | 83 | icons: | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 84 | 	mkdir icons/ | 
| Fred Drake | f832f4c | 1998-08-11 19:36:35 +0000 | [diff] [blame] | 85 | 	cp $(TOPDIR)/icons/*.gif icons/ | 
| Fred Drake | 07b12f2 | 1998-08-12 17:06:03 +0000 | [diff] [blame] | 86 |  | 
 | 87 |  | 
 | 88 | webcheck: | 
 | 89 | 	$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/api/ | 
 | 90 | 	$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ext/ | 
 | 91 | 	$(WEBCHECKER) -m290000 file:`pwd`/$(HTMLDIR)/lib/ | 
 | 92 | 	$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/mac/ | 
 | 93 | 	$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ref/ | 
 | 94 | 	$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/tut/ | 
 | 95 |  | 
 | 96 | clean: | 
 | 97 | 	rm -rf icons/ @webchecker.pickle | 
 | 98 |  | 
 | 99 | clobber: clean | 
 | 100 | 	rm -rf api/ ext/ lib/ mac/ ref/ tut/ |