summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/stex/source/Makefile
blob: b01a820b3384491ea91cbeb99fe81e2105fadd8c (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
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 $<)
	makeindex -s gind.ist -o $(basename $<).ind $(basename $<).idx
	$(PDFLATEX) $<

echo:
	@echo $(TEXINPUTS)