X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=test%2Fintegration%2Fcasl2%2Fopt_opterr%2FMakefile;h=4e2f24e43d49f5567d900a4efc8e4501d2bdf369;hp=5d0a565ada7f73cc9e96a7ef7f54d3288083929e;hb=62946aa7fff13af98f6e07ed45d2a2330bc18a7d;hpb=44a394823a565d947fb8fddbebf420aff180dc7c diff --git a/test/integration/casl2/opt_opterr/Makefile b/test/integration/casl2/opt_opterr/Makefile index 5d0a565..4e2f24e 100644 --- a/test/integration/casl2/opt_opterr/Makefile +++ b/test/integration/casl2/opt_opterr/Makefile @@ -2,7 +2,9 @@ include ../CMD.mk # YACASL2DIR, CASL2 include ../opt_s/CMD.mk # ASDIR, ASFILE CASL2FLAG = -z +MAINTARGET_OVERRIDE = 1 CMD = $(CASL2) $(CASL2FLAG) $(ASFILE) include ../TEST.mk -0.txt 1.txt:: $(CASL2) $(ASFILE) - @if test -s $(ERRFILE); then tail -1 err.txt >$@; else rm -f $(ERRFILE); 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