summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/minted/Makefile
blob: 8f051d4535db11d83cfa1734346a4f6160748122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
TEXFLAGS = -e '$$pdflatex=q/pdflatex %O -shell-escape %S/' -pdf
LATEXMK = latexmk

PACKAGE = minted.dtx \
		  minted.ins \
		  minted.pdf \
		  README \
		  Makefile

.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

minted.pdf: minted.sty minted.gls minted.dtx
	$(LATEXMK) $(TEXFLAGS) minted.dtx

minted.gls: minted.glo
	makeindex -s gglo.ist -o minted.gls minted.glo

minted.glo: minted.dtx minted.sty
	$(LATEXMK) $(TEXFLAGS) minted.dtx

dist: $(PACKAGE)
	@$(RM) minted.zip
	@zip minted.zip $(PACKAGE)

clean:
	@$(RM) *.aux *.log *.out *.toc *.fdb_latexmk *.ilg *.glo *.gls *.lol

cleanall: clean
	@$(RM) minted.sty minted.zip