- Add a full target obfuscation factory and rule and a comment explaining them.
[mgear/mgear.git] / experiments / dontcare.mk
CommitLineData
00804b7c
MM
1# Investigating dontcare (-include) targets to see if they're good for anything.
2
3# Observation 1: If a dontcare target fails during makefile remaking and is
4# needed during the real run, make gives a misleading error that it has no
5# rule instead of reporting the original failure.
6
7# Observation 2: If a required target fails, make makes do with the original
8# error message.
9
10include required.mk
11-include optional.mk
12
13all: required.mk
14
15fail%:
16 @echo "Failing to make $@"
17 false
18
19required.mk: fail1
20 echo "Trying to make $@"
21
22optional.mk: fail1
23 echo "Trying to make $@"