From 59d003f00357dc794ac125d5dcfcacbc760737df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Sun, 30 May 2010 16:04:55 +0200 Subject: Add a check target, make ctan depend on it. --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3