Fixed allSelectorsSent because a simpler implementation was overriding the original.
[cslatevm.git] / doc / Makefile
blobbcc47b494e8606677729ffe2dce00931c864b974
1 # Generates new website documentation via LyX and latex2html
3 #LYX_BIN=/Applications/Office/LyX.app/Contents/MacOS/lyx
4 LYX_BIN=lyx
5 OUT=progman
6 DIAGRAMS=core-web collection-web stream-web
7 DIAGRAM_OUTS=$(foreach dgm, $(DIAGRAMS), $(dgm).eps)
8 HTML_CONVERT=latex2html -no_subdir -reuse 1 -local_icons -split 5 -show_section_numbers
10 default: $(OUT)
12 #Call Lyx to output LaTeX, then replace \tabularnewline's with \\'s but not
13 #the first one (that creates a circularity which breaks TeX).
14 $(OUT).tex: $(OUT).lyx
15 $(LYX_BIN) -e latex $< $@
16 mv $@ $@.pre
17 sed -e '24,30s/tabularnewline/ZANZIBAR/' \
18 -e 's/\\tabularnewline/\\\\/g' \
19 -e 's/ZANZIBAR/tabularnewline/1' $@.pre > $@
21 %.pdf: %.lyx
22 $(LYX_BIN) -e pdf $< $@
24 %.ps: %.lyx
25 $(LYX_BIN) -e ps $< $@
27 %.eps: %.fig %.png $(OUT)-dir
28 fig2dev -L eps $< $@
29 cp $@ $(OUT)/$@
31 %.png: %.fig $(OUT)-dir
32 fig2dev -L png $< $@
33 cp $@ $(OUT)/$@
35 $(OUT)-dir:
36 install -d $(OUT)/
38 diagrams: $(DIAGRAM_OUTS)
40 $(OUT): $(OUT).tex diagrams $(OUT)-dir
41 cp $< $(OUT)/
42 cp $(OUT).bib $(OUT)/
43 -cp $(OUT).aux $(OUT)/
44 $(HTML_CONVERT) $(OUT)/$<
45 -rm $(OUT)/*.pl
46 -rm $(OUT)/images.*
47 -rm $(OUT)/*.tex
48 -rm $(OUT)/WARNINGS
49 -rm $(OUT).tar.gz
50 tar czf $(OUT).tar.gz $(OUT)/
52 clean:
53 -rm -Rf $(OUT)/
54 -rm $(DIAGRAM_OUTS)
55 -rm $@.pre
57 fullclean: clean
58 -rm -Rf $(OUT).tex