On 1/28/08, Yang Zhang <[EMAIL PROTECTED]> wrote: > Does make have an equivalent to bash's `nounset`? This exits immediately > with error if a variable or environment variable is unset. Thanks in > advance.
I don't think there is a single specific command to do what you want, but you can implement it like so: ifeq ($(origin REQUIRED_VAR),undefined) $(error REQUIRED_VAR is not set) endif You can read about the $(origin) command in the make manual to see if you want to do something fancier than just check for 'undefined'. -Mike _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
