summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/lualatex/luainputenc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/lualatex/luainputenc/Makefile')
-rw-r--r--Master/texmf-dist/source/lualatex/luainputenc/Makefile28
1 files changed, 15 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/lualatex/luainputenc/Makefile b/Master/texmf-dist/source/lualatex/luainputenc/Makefile
index 1ff57d2c8ef..b6916247b5c 100644
--- a/Master/texmf-dist/source/lualatex/luainputenc/Makefile
+++ b/Master/texmf-dist/source/lualatex/luainputenc/Makefile
@@ -13,8 +13,8 @@ GENERATED = $(COMPILED) $(UNPACKED)
# Files grouped by installation location
UNPACKED_DOC = inputenc.sty.diff
-RUNFILES = $(filter-out $(UNPACKED_DOC), $(UNPACKED))
-DOCFILES = $(DOC) $(UNPACKED_DOC) README NEWS
+RUNFILES = $(filter-out $(UNPACKED_DOC) test.tex, $(UNPACKED))
+DOCFILES = $(DOC) $(UNPACKED_DOC) test.tex README NEWS
SRCFILES = $(DTX) Makefile
# The following definitions should be equivalent
@@ -33,25 +33,25 @@ TDS_ZIP = $(NAME).tds.zip
ZIPS = $(CTAN_ZIP) $(TDS_ZIP)
DO_TEX = tex --interaction=batchmode $< >/dev/null
-DO_PDFLATEX = pdflatex --interaction=batchmode $< >/dev/null
-DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) >/dev/null 2>&1
+DO_LATEXMK = latexmk -silent $< >/dev/null
all: $(GENERATED)
doc: $(COMPILED)
unpack: $(UNPACKED)
-ctan: $(CTAN_ZIP)
+ctan: check $(CTAN_ZIP)
tds: $(TDS_ZIP)
world: all ctan
+.PHONY: all doc unpack ctan tds world check
-$(COMPILED): $(DTX)
- $(DO_PDFLATEX)
- $(DO_MAKEINDEX)
- $(DO_PDFLATEX)
- $(DO_PDFLATEX)
+%.pdf: %.dtx
+ $(DO_LATEXMK)
$(UNPACKED): $(DTX)
$(DO_TEX)
+check: $(UNPACKED)
+ lualatex --interaction=batchmode test.tex >/dev/null
+
$(CTAN_ZIP): $(SOURCE) $(COMPILED) $(TDS_ZIP)
@echo "Making $@ for CTAN upload."
@$(RM) -- $@
@@ -84,9 +84,11 @@ manifest:
@echo "Derived files:"
@for f in $(GENERATED); do echo $$f; done
-clean:
- @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg
+clean:
+ @latexmk -silent -c *.dtx >/dev/null
+ @# for tex-only runs:
+ @$(RM) -- *.log
mrproper: clean
- @$(RM) -- $(GENERATED) $(ZIPS)
+ @$(RM) -- $(GENERATED) $(ZIPS) test.*