summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/minted/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/minted/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/minted/Makefile34
1 files changed, 29 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/minted/Makefile b/Master/texmf-dist/source/latex/minted/Makefile
index 0b7ea239425..ab1940f5efc 100644
--- a/Master/texmf-dist/source/latex/minted/Makefile
+++ b/Master/texmf-dist/source/latex/minted/Makefile
@@ -1,12 +1,36 @@
-.PHONY: all doc sty
+TEXFLAGS = -e '$$pdflatex=q/pdflatex %O -shell-escape %S/' -pdf
+LATEXMK = latexmk
-all: sty doc
+PACKAGE = minted.dtx \
+ minted.ins \
+ minted.pdf \
+ README \
+ Makefile
-sty:
+.PHONY: all doc dist clean cleanall
+
+all: minted.sty minted.pdf
+
+doc: minted.pdf
+
+minted.sty: minted.ins minted.dtx
echo y | tex minted.ins
-doc:
+minted.pdf: minted.sty minted.gls minted.dtx
pdflatex -shell-escape minted.dtx
+minted.gls: minted.glo
+ makeindex -s gglo.ist -o minted.gls minted.glo
+
+minted.glo: minted.dtx
+ $(LATEXMK) $(TEXFLAGS) minted.dtx
+
+dist: $(PACKAGE)
+ @$(RM) minted.zip
+ @zip minted.zip $(PACKAGE)
+
clean:
- @$(RM) *.aux *.log *.out *.toc
+ @$(RM) *.aux *.log *.out *.toc *.fdb_latexmk *.ilg *.glo *.gls *.lol
+
+cleanall: clean
+ @$(RM) minted.sty minted.zip