Debian Codegraph @

texmf-dist/source/latex/traffic-light-protocol/Makefile

raw
1 .PHONY: clean all
2
3 PACKAGE=traffic-light-protocol
4 OUTDIR=out
5
6 # the -shell-escape option is not necessary for TeXLive 2024+,
7 # but it is required for all other TeX distributions
8 LATEXMK=latexmk -synctex=1 \
9 -interaction=noninteractive -halt-on-error \
10 -file-line-error \
11 -lualatex \
12 -output-directory=$(OUTDIR) -cd
13
14 all: $(PACKAGE).pdf $(PACKAGE).sty
15
16 %.pdf: %.dtx %.sty
17 $(LATEXMK) $*.dtx
18 cp $(OUTDIR)/$*.pdf .
19
20 %.sty: %.dtx %.ins
21 mkdir -p $(OUTDIR)
22 lualatex --output-directory=$(OUTDIR) $*.ins
23 cp $(OUTDIR)/$*.sty .
24
25 clean:
26 rm -rf $(OUTDIR)
27 rm -f $(PACKAGE).sty $(PACKAGE).pdf