26 lines
366 B
Plaintext
26 lines
366 B
Plaintext
#
|
|
# A makefile to test the .ORDER target in pmake.
|
|
# The targets should execute sequentially. If they do not, one of the
|
|
# tests should evaluate false.
|
|
#
|
|
.BEGIN :
|
|
rm -f q1 q2 q3
|
|
.END :
|
|
rm -f q1 q2 q3
|
|
|
|
.ORDER : q1 q2 q3
|
|
|
|
q1 ::
|
|
touch q1
|
|
test ! -f q2 -a ! -f q3
|
|
|
|
q2 ::
|
|
touch q2
|
|
test -f q1 -a ! -f q3
|
|
|
|
q3 ::
|
|
touch q3
|
|
test -f q1 -a -f q2
|
|
|
|
.MAIN : q1 q2 q3
|