summaryrefslogtreecommitdiff
path: root/info/luatex/lualatex-doc/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/luatex/lualatex-doc/Makefile
Initial commit
Diffstat (limited to 'info/luatex/lualatex-doc/Makefile')
-rw-r--r--info/luatex/lualatex-doc/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/info/luatex/lualatex-doc/Makefile b/info/luatex/lualatex-doc/Makefile
new file mode 100644
index 0000000000..f2778000a5
--- /dev/null
+++ b/info/luatex/lualatex-doc/Makefile
@@ -0,0 +1,47 @@
+NAME = lualatex-doc
+FORMAT = lualatex
+
+DOC = $(NAME).pdf
+SRC = $(NAME).tex
+README = README
+MKD = $(README).markdown
+
+SRCFILES = $(SRC) Makefile lltxdoc.cls
+DOCFILES = $(DOC) $(README) News
+ALL = $(SRCFILES) $(DOCFILES)
+
+GENERATED = $(DOC) $(README)
+
+all: lualatex-doc.pdf
+world: all ctan
+
+.PHONY: all world
+
+# (with the next version of latexmk: -pdf -pdflatex=lualatex)
+LATEXMK_FMT = -pdf -e '$$pdflatex = q(lualatex %O %S)'
+
+%.pdf: %.tex
+ latexmk -silent $(LATEXMK_FMT) $< >/dev/null
+
+$(README): $(MKD)
+ @cp $(MKD) $(README)
+
+ctan: $(NAME).tds.zip
+ @zip -q $(NAME).zip $(ALL) $(NAME).tds.zip
+
+$(NAME).tds.zip -q: $(ALL)
+ @rm -rf texmf
+ @mkdir -p texmf/doc/$(FORMAT)/$(NAME)
+ @cp $(DOCFILES) texmf/doc/$(FORMAT)/$(NAME)
+ @mkdir -p texmf/source/$(FORMAT)/$(NAME)
+ @cp $(SRCFILES) texmf/source/$(FORMAT)/$(NAME)
+ @cd texmf && zip -q -r ../$(NAME).tds.zip .
+ @rm -rf texmf
+
+.PHONY: clean mrproper
+
+clean:
+ @latexmk -silent -c >/dev/null
+
+mrproper: clean
+ @rm -f -- $(GENERATED) $(NAME)*.zip