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).
25 lines
532 B
Makefile
25 lines
532 B
Makefile
# $Id: posix.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
|
|
|
|
all: x plus subs err
|
|
|
|
x:
|
|
@echo "Posix says we should execute the command as if run by system(3)"
|
|
@echo "Expect 'Hello,' and 'World!'"
|
|
@echo Hello,; false; echo "World!"
|
|
|
|
plus:
|
|
@echo a command
|
|
+@echo "a command prefixed by '+' executes even with -n"
|
|
@echo another command
|
|
|
|
subs:
|
|
@echo make -n
|
|
@${.MAKE} -f ${MAKEFILE} -n plus
|
|
@echo make -n -j1
|
|
@${.MAKE} -f ${MAKEFILE} -n -j1 plus
|
|
|
|
err:
|
|
@(echo Now we expect an error...; exit 1)
|
|
@echo "Oops! you shouldn't see this!"
|
|
|