summaryrefslogtreecommitdiff
path: root/vedomost/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vedomost/Makefile')
-rw-r--r--vedomost/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/vedomost/Makefile b/vedomost/Makefile
new file mode 100644
index 0000000..1ef7e60
--- /dev/null
+++ b/vedomost/Makefile
@@ -0,0 +1,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
+