# Investigating dontcare (-include) targets to see if they're good for anything. # Observation 1: If a dontcare target fails during makefile remaking and is # needed during the real run, make gives a misleading error that it has no # rule instead of reporting the original failure. # Observation 2: If a required target fails, make makes do with the original # error message. include required.mk -include optional.mk all: required.mk fail%: @echo "Failing to make $@" false required.mk: fail1 echo "Trying to make $@" optional.mk: fail1 echo "Trying to make $@"