summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/stex/Makefile
blob: b727f2f94dd1eb7e99e3b5cdc5664756181b4575 (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
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)