| 1 |
# This file is part of Coccinelle, lincensed under the terms of the GPL v2. |
| 2 |
# See copyright.txt in the Coccinelle source code for more information. |
| 3 |
# The Coccinelle source code can be obtained at http://coccinelle.lip6.fr |
| 4 |
|
| 5 |
# A fairly minimal-effort rule for compiling the documentation. |
| 6 |
# Requires a few standard LaTeX packages. |
| 7 |
|
| 8 |
ifneq ($(MAKECMDGOALS),distclean) |
| 9 |
ifneq ($(MAKECMDGOALS),clean) |
| 10 |
include ../../../Makefile.config |
| 11 |
-include ../../../Makefile.local |
| 12 |
endif |
| 13 |
endif |
| 14 |
|
| 15 |
|
| 16 |
sources := $(wildcard *.tex) |
| 17 |
|
| 18 |
manual := documentation.pdf |
| 19 |
|
| 20 |
PDFLATEX_CMD=$(PDFLATEX) -halt-on-error |
| 21 |
|
| 22 |
docs: $(manual) |
| 23 |
|
| 24 |
$(manual): $(sources) |
| 25 |
$(PDFLATEX_CMD) documentation.tex |
| 26 |
$(PDFLATEX_CMD) documentation.tex |
| 27 |
|
| 28 |
clean: |
| 29 |
rm -f *.aux *.log *.out *.toc *.pdf *.dvi *.ps *~ |