Commit | Line | Data |
---|---|---|
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 | ||
10 | include required.mk | |
11 | -include optional.mk | |
12 | ||
13 | all: required.mk | |
14 | ||
15 | fail%: | |
16 | @echo "Failing to make $@" | |
17 | false | |
18 | ||
19 | required.mk: fail1 | |
20 | echo "Trying to make $@" | |
21 | ||
22 | optional.mk: fail1 | |
23 | echo "Trying to make $@" |