Files with text of the licenses added.
[linux-cma.git] / Makefile
blob19bab9c32e1f81c323fe952b3dfe0ebda0b2abb2
1 LATEX := latex -halt-on-error -file-line-error -output-directory=build
2 FAST ?= false
4 all: cma-lce.pdf
7 build/deps: find-deps.sh $(wildcard src/*.tex)
8 @exec mkdir -p build
9 @DEPS_TARGET=build/cma-lce.dvi exec sh $^ >$@
11 build/cma-lce.dvi: src/main.tex
12 build/cma-lce.dvi: $(wildcard src/*.tex)
14 include build/deps
17 %.pdf: build/%.dvi
18 exec dvipdf $< $@
20 build/cma-lce.dvi:
21 @exec mkdir -p build
22 exec $(LATEX) $<
23 $FAST || exec $(LATEX) $<
24 exec mv -- build/main.dvi $@
27 build/%.eps: img/%.svg
28 @exec mkdir -p build
29 exec inkscape -z -C --file=$^ --export-eps=$@
31 build/%.eps: img/%.dia
32 @exec mkdir -p build
33 exec dia -l -t eps -e $@ $<
35 build/%.eps: img/%.eps
36 @exec mkdir -p build
37 exec ln -sf -- ../$< $@
40 clean:
41 exec rm -fr -- build
43 clean-tex:
44 exec rm -r -- build/main.*
46 distclean: clean
47 exec rm -f -- cma-lce.pdf
50 .PHONY: clean clean-tex distclean