summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4885374..2f38501 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,10 @@ UNPACKED = luaotfload.sty luaotfload.lua
GENERATED = $(COMPILED) $(UNPACKED)
SOURCE = $(DTX) $(OTFL) README Makefile NEWS $(SCRIPT)
+# test files
+TESTDIR = tests
+TESTFILES = $(wildcard $(TESTDIR)/*.tex)
+
# Files grouped by installation location
SCRIPTFILES = $(SCRIPT)
RUNFILES = $(UNPACKED) $(OTFL)
@@ -41,7 +45,7 @@ DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) >/dev/null 2>&1
all: $(GENERATED)
doc: $(COMPILED)
unpack: $(UNPACKED)
-ctan: $(CTAN_ZIP)
+ctan: check $(CTAN_ZIP)
tds: $(TDS_ZIP)
world: all ctan
@@ -80,6 +84,12 @@ install: $(ALL_FILES)
@echo "Installing in '$(TEXMFROOT)'."
$(run-install)
+check: $(RUNFILES) $(TESTFILES)
+ @for f in $(TESTFILES); do \
+ echo "check: luatex $$f"; \
+ luatex --interaction=batchmode $$f > /dev/null || exit $$?; \
+ done
+
manifest:
@echo "Source files:"
@for f in $(SOURCE); do echo $$f; done