I have a makefile containing an include statement. I have no control over the content of the included makefile. Still, I want to be able to add some pre-processing steps before "some" (not all) of the targets. Consider the following example:
install:
@echo "install target"
include othermakefile.mk
othermakefile.mk contains install target as well. If I run this script, make gives a warning and ignores the first install target.