summaryrefslogtreecommitdiff
path: root/vedomost/Makefile
blob: 1ef7e6035dbd24089f54f76844dfbd54c70bf94a (plain)
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
TEX         = $(wildcard *.tex)
PDF         = $(subst .tex,.pdf,$(TEX))
STA         = $(subst .tex,.stat,$(TEX))

STAT        = perl makestat.pl

default: pdf stat

pdf: $(PDF)
stat: $(STA)

%.pdf: %.tex %.stat %.inc FORCE
	pdflatex $<

%.stat: %.idx
	 $(STAT) < $< > $@

%.idx: %.tex
	-pdflatex -halt-on-error -interaction=nonstopmode $<

clean:
	rm -f .*~ *~ *.aux *.idx *.ilg *.log *.stat

FORCE:

.PHONY: pdf clean