(file) Return to Makefile CVS log (file) (dir) Up to [HallC] / Documents / Howtos

 1 saw   1.1 #
 2           # Makefile to build the whole Hall C howto collection
 3           #
 4           # $Log:$
 5           
 6           # These should eventually automatically add branch names
 7           
 8           HOWTOWEBROOT=http://hallcweb.jlab.org/document/howtos
 9           HOWTOFSROOT=/group/hallc/www/hallcweb/html/document/howtos
10           
11           TEXFILES := $(wildcard *.tex)
12           
13           PSTARGETS := $(patsubst %.tex,%.ps,$(TEXFILES))
14           DVIFILES := $(patsubst %.tex,%.dvi,$(TEXFILES))
15           BBLFILES := $(patsubst %.tex,%.bbl,$(TEXFILES))
16           LATEXHTMLDIRS := $(patsubst %.tex,%,$(TEXFILES))
17           LATEXHTMLINDEXES := $(patsubst %.tex,%/index.html,$(TEXFILES))
18           
19           .SECONDARY: $(DVIFILES) $(BBLFILES)
20           
21           all: postscript html
22 saw   1.1 
23           clean: clean_texout clean_html
24           
25           clean_texout:
26           	rm -f $(PSTARGETS) *.dvi *.blg *.bbl *.blg *.aux *.log
27           
28           clean_html:
29           
30           postscript: $(PSTARGETS)
31           
32           html: $(LATEXHTMLINDEXES)
33           
34           %.ps: %.dvi
35           	dvips -o $@ $*
36           
37           # Remove straight tex to dvi
38           %.dvi: %.tex
39           
40           %.dvi: %.bbl
41           	latex $*
42           	latex $*
43 saw   1.1 
44           %.bbl: %.tex chowto.bib chowto-auto.bib
45           	latex $*
46           	-bibtex $*
47           
48           %/index.html: %.bbl chowto.perl
49           	latex2html -init_file latex2html-init $*
50           
51           howtolist.html chowto-auto.bib: chowto_scan.perl $(TEXFILES)
52           	./chowto_scan.perl . $(HOWTOWEBROOT)
53           
54           install:
55           	install --mode=664 howtolist.html $(HOWTOFSROOT)
56           	install --mode=664 $(PSTARGETS) $(HOWTOFSROOT)
57           

Analyzer/Replay: Mark Jones, Documents: Stephen Wood
Powered by
ViewCVS 0.9.2-cvsgraph-1.4.0