summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2012-05-13 01:32:46 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2012-05-13 01:32:46 +0200
commit99d49de9cb629d5c1170b0b4ae2ae57acfbfecfb (patch)
tree725f2934d26eacd470fff1e414654fd901a80fb8 /Makefile
parent42be9d0c24a418e1509b9c2286f036ba4cafd4bb (diff)
downloadluaotfload-99d49de9cb629d5c1170b0b4ae2ae57acfbfecfb.tar.gz
Run make check in a clean env as possible
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 82bc4f5..69c5ede 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ TESTDIR = tests
TESTFILES = $(wildcard $(TESTDIR)/*.tex)
TESTFILES_SYS = $(TESTDIR)/systemfonts.tex $(TESTDIR)/fontconfig_conf_reading.tex
TESTFILES_TL = $(filter-out $(TESTFILES_SYS), $(TESTFILES))
-TESTINPUTS = '.;..;$$TEXMF/tex/{luatex,plain,generic,}//'
+TESTENV = env TEXINPUTS='.;..;$$TEXMF/tex/{luatex,plain,generic,}//' TEXMFVAR='../var'
# Files grouped by installation location
SCRIPTFILES = $(SCRIPT)
@@ -84,16 +84,17 @@ install: $(ALL_FILES)
$(run-install)
check: $(RUNFILES) $(TESTFILES_TL)
+ @rm -rf var
@cd $(TESTDIR); for f in $(TESTFILES_TL); do \
echo "check: luatex $$f"; \
- env TEXINPUTS=$(TESTINPUTS) luatex --interaction=batchmode ../$$f \
+ $(TESTENV) luatex --interaction=batchmode ../$$f \
> /dev/null || exit $$?; \
done
check-all: $(TESTFILES_SYS) check
@cd $(TESTDIR); for f in $(TESTFILES_SYS); do \
echo "check: luatex $$f"; \
- env TEXINPUTS=$(TESTINPUTS) luatex --interaction=batchmode ../$$f \
+ $(TESTENV) luatex --interaction=batchmode ../$$f \
> /dev/null || exit $$?; \
done