b9dad2e00f
* Rename each sub-makefile to *.mk; * Add a *.exp file of expected output for each sub-makefile; * Remove test.exp, which is replaced by all the other *.exp files. * Use suffix rules to generate *.rawout and *.out files for each test case. * Rewrite the test and accept targets to adapt to the new way. The old (now removed) test.exp file is almost identical to the concatenation (in the correct order) of all the new *.exp files. There are expected differences in makefile names embedded in the output, and the new "exit status" lines. Some old "*** Error code 1 (ignored)" lines are also removed (replaced by new "exit status 1" lines).
32 lines
719 B
Makefile
32 lines
719 B
Makefile
# $Id: moderrs.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
|
|
#
|
|
# various modifier error tests
|
|
|
|
VAR=TheVariable
|
|
# incase we have to change it ;-)
|
|
MOD_UNKN=Z
|
|
MOD_TERM=S,V,v
|
|
MOD_S:= ${MOD_TERM},
|
|
|
|
all: modunkn modunknV varterm vartermV modtermV
|
|
|
|
modunkn:
|
|
@echo "Expect: Unknown modifier 'Z'"
|
|
@echo "VAR:Z=${VAR:Z}"
|
|
|
|
modunknV:
|
|
@echo "Expect: Unknown modifier 'Z'"
|
|
@echo "VAR:${MOD_UNKN}=${VAR:${MOD_UNKN}}"
|
|
|
|
varterm:
|
|
@echo "Expect: Unclosed variable specification for VAR"
|
|
@echo VAR:S,V,v,=${VAR:S,V,v,
|
|
|
|
vartermV:
|
|
@echo "Expect: Unclosed variable specification for VAR"
|
|
@echo VAR:${MOD_TERM},=${VAR:${MOD_S}
|
|
|
|
modtermV:
|
|
@echo "Expect: Unclosed substitution for VAR (, missing)"
|
|
-@echo "VAR:${MOD_TERM}=${VAR:${MOD_TERM}}"
|