summaryrefslogtreecommitdiff
path: root/vedomost/Makefile
diff options
context:
space:
mode:
authorIgor <pashev.igor@gmail.com>2009-11-21 18:38:12 +0300
committerIgor <pashev.igor@gmail.com>2009-11-21 18:38:12 +0300
commit8293cefa318f7a4518f69d3bf90704bf7c40da7e (patch)
tree1bc0ce3c8a64d7e014a063410396b1bcf380bf67 /vedomost/Makefile
downloadautodocs-8293cefa318f7a4518f69d3bf90704bf7c40da7e.tar.gz
Шаблоны чисто документов
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
+