summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/stex/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/stex/doc/Makefile')
-rw-r--r--macros/latex/contrib/stex/doc/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/macros/latex/contrib/stex/doc/Makefile b/macros/latex/contrib/stex/doc/Makefile
new file mode 100644
index 0000000000..b727f2f94d
--- /dev/null
+++ b/macros/latex/contrib/stex/doc/Makefile
@@ -0,0 +1,26 @@
+STY = stex extensions
+SPATH = $(STY:%=../source/%)
+DTX = $(shell ls $(SPATH:%=%/*.dtx))
+INS = $(shell ls $(SPATH:%=%/*.ins))
+DOC = stex-doc.pdf stex-manual.pdf
+TEXDIR = ../tex
+TEXINPUTS = $(TEXDIR)//:
+
+PDFLATEX = pdflatex -interaction=batchmode
+
+all: pack doc
+
+doc: $(DOC)
+
+package:
+
+pack: $(DTX) $(INS)
+ @for i in $(SPATH); do cd $$i; make package; done
+
+$(DOC): %.pdf: %.tex pack
+ $(PDFLATEX) $<
+ biber -q $(basename $<)
+ $(PDFLATEX) $<
+
+echo:
+ @echo $(SPATH)