summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/luatex/luatexbase/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/luatex/luatexbase/Makefile')
-rw-r--r--Master/texmf-dist/source/luatex/luatexbase/Makefile24
1 files changed, 13 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/luatex/luatexbase/Makefile b/Master/texmf-dist/source/luatex/luatexbase/Makefile
index 8c82909d79f..0b854b07500 100644
--- a/Master/texmf-dist/source/luatex/luatexbase/Makefile
+++ b/Master/texmf-dist/source/luatex/luatexbase/Makefile
@@ -21,10 +21,10 @@ UNPACKED_MODUTILS = luatexbase-modutils.sty modutils.lua test-modutils.lua \
test-modutils-plain.tex test-modutils-latex.tex
UNPACKED_COMPAT = luatexbase-compat.sty \
test-compat-plain.tex test-compat-latex.tex
-UNPACKED_CORE = luatexbase.sty
+UNPACKED_BASE = luatexbase.sty test-base-plain.tex test-base-latex.tex
UNPACKED = $(UNPACKED_MCB) $(UNPACKED_REGS) $(UNPACKED_ATTR) $(UNPACKED_CCTB) \
$(UNPACKED_LOADER) $(UNPACKED_MODUTILS) $(UNPACKED_COMPAT) \
- $(UNPACKED_CORE)
+ $(UNPACKED_BASE)
COMPILED = $(DOC)
GENERATED = $(COMPILED) $(UNPACKED)
SOURCE = $(DTX) $(DTXSTY) README TODO Changes Makefile
@@ -60,13 +60,12 @@ 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
# Main targets definition
all: $(GENERATED)
check: check-regs check-attr check-cctb check-loader check-modutils check-mcb \
- check-compat
+ check-compat check-base
doc: $(COMPILED)
unpack: $(UNPACKED)
ctan: check $(CTAN_ZIP)
@@ -74,10 +73,7 @@ tds: $(TDS_ZIP) Makefile
world: all ctan
%.pdf: %.dtx $(DTXSTY)
- $(DO_PDFLATEX)
- $(DO_MAKEINDEX) || true
- $(DO_PDFLATEX)
- $(DO_PDFLATEX)
+ $(DO_LATEXMK)
luatexbase.%.lua: %.lua
ln -sf $< $@
@@ -103,7 +99,7 @@ $(UNPACKED_MODUTILS): luatexbase-modutils.dtx
$(UNPACKED_COMPAT): luatexbase-compat.dtx
$(DO_TEX)
-$(UNPACKED_CORE): luatexbase.dtx
+$(UNPACKED_BASE): luatexbase.dtx
$(DO_TEX)
check-regs: $(UNPACKED_REGS)
@@ -135,6 +131,10 @@ check-compat: $(UNPACKED_COMPAT)
luatex --interaction=batchmode test-compat-plain.tex >/dev/null
lualatex --interaction=batchmode test-compat-latex.tex >/dev/null
+check-base: $(UNPACKED_BASE)
+ luatex --interaction=batchmode test-base-plain.tex >/dev/null
+ lualatex --interaction=batchmode test-base-latex.tex >/dev/null
+
$(CTAN_ZIP): $(SOURCE) $(COMPILED) $(TDS_ZIP)
@echo "Making $@ for CTAN upload."
@$(RM) -- $@
@@ -169,7 +169,9 @@ manifest:
@for f in $(GENERATED); do echo $$f; done
clean:
- @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.out test-*.pdf
+ @latexmk -silent -c *.dtx >/dev/null
+ @# for tex-only runs
+ @$(RM) -- *.log
mrproper: clean
@$(RM) -- $(GENERATED) $(ZIPS) $(TMP_LOADER)