blob: ef7bf31f03f0502457458b4268b1c3e19fc7d411 (
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
37
38
39
40
41
|
NAME = lualatex-doc
DOC = $(NAME).pdf
SRC = $(NAME).tex
README = README
MKD = $(README).markdown
ALLSRC = $(SRC) Makefile lltxdoc.cls
ALLGEN = $(DOC) $(README)
ALL = $(ALLGEN) $(ALLSRC)
FORMAT = lualatex
all: lualatex-doc.pdf
world: all ctan
.PHONY: all world
%.pdf: %.tex
latexmk -silent -pdflatex=lualatex $< >/dev/null
$(README): $(MKD)
@cp $(MKD) $(README)
ctan: $(NAME).tds.zip -q
@zip -q $(NAME).zip $(ALL) $(NAME).tds.zip
$(NAME).tds.zip -q: $(ALLGEN) $(ALLSRC)
@rm -rf texmf
@mkdir -p texmf/doc/$(FORMAT)
@cp $(ALLGEN) texmf/doc/$(FORMAT)
@mkdir -p texmf/source/$(FORMAT)
@cp $(ALLSRC) texmf/source/$(FORMAT)
@cd texmf && zip -q -r ../$(NAME).tds.zip .
@rm -rf texmf
.PHONY: clean mrproper
clean:
@latexmk -silent -c >/dev/null
mrproper: clean
@rm -f -- $(ALLGEN) $(NAME)*.zip
|