-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
46 lines (31 loc) · 972 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%.html1: %.pod
pod2html --outfile=$@ $<
%.html: %.html1
emacs --batch --load=tableau $< --funcall=tableau-html
./ajust-html $@
%.dvi: %.tex
latex $<
latex $<
%.pdf: %.tex
pdflatex $<
pdflatex $<
%.tex1: %.pod
pod2latex --out=$@ $<
mv [email protected] $@
%.tex: %.tex1
emacs --batch --load=tableau $< --funcall=tableau-latex
./ajust-tex $*
tout: latex html pdf
html: lisez-moi.html README.html
latex: lisez-moi.dvi README.dvi
lisez-moi.dvi: lisez-moi.tex
README.dvi: README.tex
pdf: README.pdf lisez-moi.pdf
README.pdf: README.tex
lisez-moi.pdf: lisez-moi.tex
test: test.html test.tex
echo '1..2'
perl -pe 's/emacs\s+\d+\.\d+\.\d+/emacs version/i' test.html | diff -qBw - test.html.ref && echo '1 ok' || echo '1 not ok'
perl -pe 's/emacs\s+\d+\.\d+\.\d+/emacs version/i' test.tex | diff -qBw - test.tex.ref && echo '2 ok' || echo '2 not ok'
reinit:
rm lisez-moi.html1 README.html1 *.html lisez-moi.tex1 README.tex1 *.tex *.dvi *.pdf *.log *.aux *.out