16 lines
353 B
Plaintext
16 lines
353 B
Plaintext
#
|
|
# Makefile to test execution of commands
|
|
#
|
|
a :
|
|
@echo ${.TARGET}
|
|
: That should have printed just "a"
|
|
#ifndef DO_ERROR
|
|
: Should next get an error message about extra commands for a ignored
|
|
-@$(MAKE) -lMf cmd.test -DDO_ERROR
|
|
#endif DO_ERROR
|
|
|
|
#ifdef DO_ERROR
|
|
a :
|
|
: this is an error. Only one command per target for the ':' operator
|
|
#endif DO_ERROR
|