summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-05-30 16:04:55 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-05-30 16:04:55 +0200
commit59d003f00357dc794ac125d5dcfcacbc760737df (patch)
tree646f8cfa7b28c539cf6390f29c7fd28ba8ef8d4b
parent58561dcddc21d070da19b67012ed98ddb4dda721 (diff)
downloadluaotfload-59d003f00357dc794ac125d5dcfcacbc760737df.tar.gz
Add a check target, make ctan depend on it.
-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