(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 saw   1.2 # $Log: Makefile,v $
 5 saw   1.4 # Revision 1.3  2003/03/11 21:55:57  saw
 6           # chowto_scan.pl generates howtolist.text and index.html
 7           #
 8 saw   1.3 # Revision 1.2  2003/03/08 04:03:46  saw
 9           # Build chowto.tgz, the set of files an author needs to prepare a howto.
10           #
11 saw   1.2 # Revision 1.1  2003/03/06 20:20:57  saw
12           # Initial Checkin
13           #
14 saw   1.1 
15           # These should eventually automatically add branch names
16           
17           HOWTOWEBROOT=http://hallcweb.jlab.org/document/howtos
18           HOWTOFSROOT=/group/hallc/www/hallcweb/html/document/howtos
19           
20           TEXFILES := $(wildcard *.tex)
21           
22           PSTARGETS := $(patsubst %.tex,%.ps,$(TEXFILES))
23           DVIFILES := $(patsubst %.tex,%.dvi,$(TEXFILES))
24           BBLFILES := $(patsubst %.tex,%.bbl,$(TEXFILES))
25           LATEXHTMLDIRS := $(patsubst %.tex,%,$(TEXFILES))
26           LATEXHTMLINDEXES := $(patsubst %.tex,%/index.html,$(TEXFILES))
27           
28           .SECONDARY: $(DVIFILES) $(BBLFILES)
29           
30 saw   1.2 all: postscript html chowto.tgz
31 saw   1.1 
32           clean: clean_texout clean_html
33           
34           clean_texout:
35           	rm -f $(PSTARGETS) *.dvi *.blg *.bbl *.blg *.aux *.log
36           
37           clean_html:
38 saw   1.3 	rm -f howtolist.html index.html
39 saw   1.1 
40           postscript: $(PSTARGETS)
41           
42           html: $(LATEXHTMLINDEXES)
43           
44           %.ps: %.dvi
45           	dvips -o $@ $*
46           
47           # Remove straight tex to dvi
48           %.dvi: %.tex
49           
50           %.dvi: %.bbl
51           	latex $*
52           	latex $*
53           
54           %.bbl: %.tex chowto.bib chowto-auto.bib
55           	latex $*
56           	-bibtex $*
57           
58           %/index.html: %.bbl chowto.perl
59           	latex2html -init_file latex2html-init $*
60 saw   1.1 
61 saw   1.3 howtolist.html chowto-auto.bib howtolist.text index.html: chowto_scan.perl $(TEXFILES)
62 saw   1.4 	./chowto_scan.perl $(HOWTOWEBROOT)
63 saw   1.1 
64 saw   1.2 chowto.tgz: template.tex_tex howtohowto.tex chowto.cls chowto.bst chowto.bib chowto-auto.bib
65           	-mkdir tarfile
66           	cp template.tex_tex tarfile/template.tex
67           	cat chowto.bib chowto-auto.bib > tarfile/chowto.bib
68           	cp howtohowto.tex chowto.cls chowto.bst tarfile
69           	(cd tarfile ; tar -zcf ../chowto.tgz *)
70           	rm -fr tarfile
71           
72 saw   1.1 install:
73           	install --mode=664 howtolist.html $(HOWTOFSROOT)
74 saw   1.3 	install --mode=664 howtolist.text $(HOWTOFSROOT)
75 saw   1.1 	install --mode=664 $(PSTARGETS) $(HOWTOFSROOT)
76 saw   1.2 	install --mode=664 index.html $(HOWTOFSROOT)
77           	install --mode=664 chowto.tgz $(HOWTOFSROOT)
78           	for subdir in $(LATEXHTMLDIRS); do \
79           	   install --mode=775 -d $(HOWTOFSROOT)/$$subdir ; \
80           	   install --mode=664 $$subdir/* $(HOWTOFSROOT)/$$subdir ; \
81           	done
82 saw   1.1 

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