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
470 B
Makefile
32 lines
470 B
Makefile
# This is a comment
|
|
.if ${MACHINE_ARCH} == something
|
|
FOO=bar
|
|
.endif
|
|
|
|
#\
|
|
Multiline comment
|
|
|
|
BAR=# defined
|
|
FOOBAR= # defined
|
|
|
|
# This is an escaped comment \
|
|
that keeps going until the end of this line
|
|
|
|
# Another escaped comment \
|
|
that \
|
|
goes \
|
|
on
|
|
|
|
# This is NOT an escaped comment due to the double backslashes \\
|
|
all: hi foo bar
|
|
@echo comment testing done
|
|
|
|
hi:
|
|
@echo comment testing start
|
|
|
|
foo:
|
|
@echo this is $@
|
|
|
|
bar:
|
|
@echo This is how a comment looks: '# comment'
|