Release coccinelle-0.1.7
[bpt/coccinelle.git] / docs / grammar / Makefile
CommitLineData
faf9a90c
C
1TEX=cocci_syntax.tex
2WEB=/var/www/localhost/htdocs/coccinelle/
3EMNWEB=~/website/docs/
4
5PDF=$(TEX:.tex=.pdf)
6HTML=$(TEX:.tex=.html)
7
8
9.phony: all html clean check
10
11all: $(TEX)
12 pdflatex $<
13 pdflatex $<
14
15html: $(HTML)
16
17clean:
18 rm -f *.aux *.dvi *.haux *.htoc *.log *.out *~
19
20distclean: clean
21 rm -f *.pdf *.html *.gif *.css
22
23check: $(HTML)
24 checklink $<
25
26world: all html
27
28universe: world install
29
30install:
31 cp *.css *.gif *.html $(WEB)
32 cp $(PDF) $(WEB)
33 chown apache:apache -R $(WEB)
34 chmod a-w -R $(WEB)
35
0708f913 36emn_install: world
faf9a90c
C
37 cp *.css *.gif *.html $(EMNWEB)
38 cp $(PDF) $(EMNWEB)
39
40############################################
41############################################
42
43.SUFFIXES: .html .tex
44
45.tex.html:
46# For Gentoo: /usr/lib64/hevea
47# For Ubuntu family: /usr/share/hevea
48# For default installation
49 @if [ -f /usr/lib64/hevea/xxdate.exe ]; then \
50 hevea -exec /usr/lib64/hevea/xxdate.exe $< ; \
51 hevea -exec /usr/lib64/hevea/xxdate.exe $< ; \
52 elif [ -f /usr/share/hevea/xxdate.exe ]; then \
53 hevea -exec /usr/share/hevea/xxdate.exe $< ; \
54 hevea -exec /usr/share/hevea/xxdate.exe $< ; \
55 elif [ -f /usr/local/lib/hevea/xxdate.exe ]; then \
56 hevea -exec /usr/local/lib/hevea/xxdate.exe $< ; \
57 hevea -exec /usr/local/lib/hevea/xxdate.exe $< ; \
58 else \
59 echo -e "\n\n *** Hevea: Unable to find xxdate.exe ***\n\n"; \
60 fi
61 hacha -o index.html cocci_syntax.html