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

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