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