Is there a way to set options and override defaults from within a Makefile?
I have my own "make libraries" and don't want to include sys.mk when compiling within my project directory. I also don't care to set MAKEFLAGS since when I'm not in one of my projects I would rather have the default behavior. Is there a way to do this?
P.S. Right now I'm imagining some sort of hack if I can't do this. Such as a "make" script earlier in the path to replace /usr/bin/make and check for a special file if it exists to then invoke make with -r. Or maybe a zsh hook to change a make alias depending on the current directory.
I have my own "make libraries" and don't want to include sys.mk when compiling within my project directory. I also don't care to set MAKEFLAGS since when I'm not in one of my projects I would rather have the default behavior. Is there a way to do this?
P.S. Right now I'm imagining some sort of hack if I can't do this. Such as a "make" script earlier in the path to replace /usr/bin/make and check for a special file if it exists to then invoke make with -r. Or maybe a zsh hook to change a make alias depending on the current directory.