1 LATEX
:= latex
-halt-on-error
-file-line-error
-output-directory
=build
7 build
/deps
: find-deps.sh
$(wildcard src
/*.
tex)
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)
23 $FAST || exec
$(LATEX
) $<
24 exec mv
-- build
/main.
dvi $@
27 build
/%.eps
: img
/%.svg
29 exec inkscape
-z
-C
--file
=$^
--export-eps
=$@
31 build
/%.eps
: img
/%.dia
33 exec dia
-l
-t eps
-e
$@
$<
35 build
/%.eps
: img
/%.eps
37 exec ln
-sf
-- ..
/$< $@
44 exec
rm -r
-- build
/main.
*
47 exec
rm -f
-- cma-lce.pdf
50 .PHONY
: clean clean-tex
distclean