1 # Generates new website documentation via LyX and latex2html
3 #LYX_BIN=/Applications/Office/LyX.app/Contents/MacOS/lyx
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
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
$< $@
17 sed
-e
'24,30s/tabularnewline/ZANZIBAR/' \
18 -e
's/\\tabularnewline/\\\\/g' \
19 -e
's/ZANZIBAR/tabularnewline/1' $@.pre
> $@
22 $(LYX_BIN
) -e pdf
$< $@
25 $(LYX_BIN
) -e ps
$< $@
27 %.eps
: %.fig
%.png
$(OUT
)-dir
31 %.png
: %.fig
$(OUT
)-dir
38 diagrams
: $(DIAGRAM_OUTS
)
40 $(OUT
): $(OUT
).
tex diagrams
$(OUT
)-dir
43 -cp
$(OUT
).aux
$(OUT
)/
44 $(HTML_CONVERT
) $(OUT
)/$<
50 tar czf
$(OUT
).
tar.gz
$(OUT
)/