summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 20 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 3e7cb5a..f2e9a8d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ NAME = luatexbase
DTX = $(wildcard *.dtx)
DOC = $(patsubst %.dtx, %.pdf, $(DTX))
DTXSTY = lltxb-dtxstyle.tex
+LOADER_RUN = luatexbase-loader.sty luatexbase.loader.lua
+MOD_RUN = luatexbase-modutils.sty luatexbase.modutils.lua
# Files grouped by generation mode
UNPACKED_MCB = test-luamcallbacks.tex luamcallbacks.lua
@@ -13,10 +15,12 @@ UNPACKED_ATTR = luatexbase-attr.sty luatexbase.attr.lua \
test-attr-plain.tex test-attr-latex.tex
UNPACKED_CCTB = luatexbase-cctb.sty luatexbase.cctb.lua \
test-cctb-plain.tex test-cctb-latex.tex
-UNPACKED_LOADER = luatexbase-loader.sty luatexbase.loader.lua \
+UNPACKED_LOADER = $(LOADER_RUN) \
test-loader-plain.tex test-loader-latex.tex
+UNPACKED_MODUTILS = $(MOD_RUN) \
+ test-modutils-plain.tex test-modutils-latex.tex test-modutils.lua
UNPACKED = $(UNPACKED_MCB) $(UNPACKED_REGS) $(UNPACKED_ATTR) $(UNPACKED_CCTB) \
- $(UNPACKED_LOADER)
+ $(UNPACKED_LOADER) $(UNPACKED_MODUTILS)
COMPILED = $(DOC)
GENERATED = $(COMPILED) $(UNPACKED)
SOURCE = $(DTX) $(DTXSTY) README TODO Changes Makefile
@@ -47,7 +51,7 @@ DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) >/dev/null 2>&1
# Main targets definition
all: $(GENERATED)
-check: check-regs check-attr check-cctb check-load
+check: check-regs check-attr check-cctb check-loader check-modutils check-mcb
doc: $(COMPILED)
unpack: $(UNPACKED)
ctan: check $(CTAN_ZIP)
@@ -75,15 +79,18 @@ $(UNPACKED_CCTB): luatexbase-cctb.dtx
$(UNPACKED_LOADER): luatexbase-loader.dtx
$(DO_TEX)
+$(UNPACKED_MODUTILS): luatexbase-modutils.dtx
+ $(DO_TEX)
+
check-regs: $(UNPACKED_REGS)
luatex --interaction=batchmode test-regs-plain.tex >/dev/null
lualatex --interaction=batchmode test-regs-latex.tex >/dev/null
-check-attr: $(UNPACKED_ATTR)
+check-attr: $(UNPACKED_ATTR) $(LOADER_RUN)
luatex --interaction=batchmode test-attr-plain.tex >/dev/null
lualatex --interaction=batchmode test-attr-latex.tex >/dev/null
-check-cctb: $(UNPACKED_CCTB)
+check-cctb: $(UNPACKED_CCTB) $(LOADER_RUN)
luatex --interaction=batchmode test-cctb-plain.tex >/dev/null
lualatex --interaction=batchmode test-cctb-latex.tex >/dev/null
@@ -91,6 +98,13 @@ check-loader: $(UNPACKED_LOADER)
luatex --interaction=batchmode test-loader-plain.tex >/dev/null
lualatex --interaction=batchmode test-loader-latex.tex >/dev/null
+check-modutils: $(UNPACKED_MODUTILS) $(LOADER_RUN)
+ luatex --interaction=batchmode test-modutils-plain.tex >/dev/null
+ lualatex --interaction=batchmode test-modutils-latex.tex >/dev/null
+
+check-mcb: $(UNPACKED_MCB) $(LOADER_RUN) $(MOD_RUN)
+ luatex --interaction=batchmode test-luamcallbacks.tex >/dev/null
+
$(CTAN_ZIP): $(SOURCE) $(COMPILED) $(TDS_ZIP)
@echo "Making $@ for CTAN upload."
@$(RM) -- $@
@@ -124,7 +138,7 @@ manifest:
@for f in $(GENERATED); do echo $$f; done
clean:
- @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.out
+ @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.out test-*.pdf
mrproper: clean
@$(RM) -- $(GENERATED) $(ZIPS)