067c9f12025a700d1e0815ee2d5adfb775bd4683
[bpt/coccinelle.git] / docs / Makefile
1 SUBDIRS=grammar
2
3 TEX=options.tex
4 PDF=$(TEX:.tex=.pdf)
5 AUX=$(TEX:.tex=.aux)
6 LOG=$(TEX:.tex=.log)
7
8 .PHONY: all clean distclean $(SUBDIRS)
9 .SUFFIXES: .pdf .tex
10
11 all: $(PDF) $(SUBDIRS)
12
13 $(SUBDIRS):
14 make -C $@
15
16 $(PDF): $(TEX)
17 pdflatex $<
18
19 clean:
20 make -C $(SUBDIRS) clean
21 rm -f $(AUX) $(LOG)
22
23 distclean:
24 make -C $(SUBDIRS) distclean
25 rm -f $(PDF)