Refactoring TEST.mk
[YACASL2.git] / test / integration / casl2 / opt_opterr / Makefile
index 87c8b6a..4e2f24e 100644 (file)
@@ -2,9 +2,9 @@
 include ../CMD.mk               # YACASL2DIR, CASL2
 include ../opt_s/CMD.mk         # ASDIR, ASFILE
 CASL2FLAG = -z
-SETBYOTHER = 0
+MAINTARGET_OVERRIDE = 1
 CMD = $(CASL2) $(CASL2FLAG) $(ASFILE)
 include ../TEST.mk
-0.txt 1.txt: $(CASL2) $(ASFILE)
-       @$(CMD) >>$@ 2>err.txt; \
-     if test -s err.txt; then tail -1 err.txt >>$@; else rm -f err.txt; fi
+0.txt 1.txt:
+       @$(CMD) >>$@ 2>$(ERR_FILE); \
+     if test -s $(ERR_FILE); then tail -1 $(ERR_FILE) >>$@; else rm -f $(ERR_FILE); fi