Created
January 21, 2019 21:34
-
-
Save petewarden/c3c45e4819369d3da5595d61411109d2 to your computer and use it in GitHub Desktop.
Call `make -f Makefile` on this gives the error `/tmp/Makefile:9: *** multiple target patterns. Stop.`. Pasting the content directly into the file instead of calling doesn't! Any ideas anyone?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define call_test | |
%: % | |
echo "foo" | |
foo/%: % | |
echo "foo" | |
endef | |
$(call call_test) |
Never mind, this was happening because I was forgetting to call eval! The last line should actually be:
$(eval $(call call_test))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most instances of this seem to be related to colons or spaces in filenames, but I think I've eliminated that with this minimal example?
https://stackoverflow.com/questions/2100448/multiple-target-patterns-makefile-error