Fix commands.tex rule and add cleaning rule.
[doldaconnect.git] / doc / protocol / Makefile.am
... / ...
CommitLineData
1EXTRA_DIST = cmd protocol.tex
2
3.dvi.ps:
4 dvips -o $@ $<
5
6protocol.dvi: protocol.tex commands.tex protocol.1st
7 latex protocol
8
9protocol.1st: protocol.tex commands.tex
10 latex protocol
11 touch protocol.1st
12
13commands.tex: cmd/*.tex
14 rm -f commands.tex; \
15 for f in cmd/*.tex; do \
16 echo "\\begin{reqspec}{${f%.tex}}" >>commands.tex; \
17 cat "$$f" >>commands.tex; \
18 echo "\\end{reqspec}" >>commands.tex; \
19 done
20
21clean-local:
22 rm -f protocol.aux protocol.log protocol.dvi commands.tex \
23 protocol.1st protocol.ps