summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/stex/source/stex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/stex/source/stex/Makefile')
-rw-r--r--macros/latex/contrib/stex/source/stex/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/latex/contrib/stex/source/stex/Makefile b/macros/latex/contrib/stex/source/stex/Makefile
new file mode 100644
index 0000000000..2b9a63750b
--- /dev/null
+++ b/macros/latex/contrib/stex/source/stex/Makefile
@@ -0,0 +1,23 @@
+DTX = $(shell ls *.dtx)
+DOC = $(DTX:%.dtx=%.pdf)
+INS = stex.ins
+
+PDFLATEX = pdflatex -interaction=batchmode
+TEXDIR = ../../tex
+TEXINPUTS = $(TEXDIR)//:
+
+all: package doc
+
+doc: $(DOC)
+
+package: $(DTX) $(INS)
+ $(PDFLATEX) $(INS)
+ mv *.sty *.cls $(TEXDIR)
+
+$(DOC): %.pdf: %.dtx
+ $(PDFLATEX) $<
+ biber -q $(basename $<)
+ $(PDFLATEX) $<
+
+echo:
+ @echo $(TEXINPUTS)