Discussion:
Is there a way to set --warn-undefined-variables in the Makefile?
Anton Daneyko
2013-01-18 12:51:48 UTC
Permalink
Dear All,
I can run make with the --warn-undefined-variables parameter, but I wonder
if I can enforce this behavior directly in the Makefile? In a way similar
to "set -u" in the bash script.
Lane Schwartz
2013-01-18 17:09:57 UTC
Permalink
I thought there was, but now that I go back and look at my old
scripts, I'm not so sure.

You can take a look at how I handled things:
https://github.com/dowobeha/joshua-pipeline
Post by Anton Daneyko
Dear All,
I can run make with the --warn-undefined-variables parameter, but I wonder
if I can enforce this behavior directly in the Makefile? In a way similar
to "set -u" in the bash script.
_______________________________________________
Help-make mailing list
https://lists.gnu.org/mailman/listinfo/help-make
--
When a place gets crowded enough to require ID's, social collapse is not
far away. It is time to go elsewhere. The best thing about space travel
is that it made it possible to go elsewhere.
-- R.A. Heinlein, "Time Enough For Love"
Anton Daneyko
2013-01-19 13:23:49 UTC
Permalink
One needs to put MAKEFLAGS=--warn-undefined-variables in the beginning of
the script.
Post by Anton Daneyko
Dear All,
I can run make with the --warn-undefined-variables parameter, but I
wonder if I can enforce this behavior directly in the Makefile? In a way
similar to "set -u" in the bash script.
Loading...