summaryrefslogtreecommitdiff
path: root/default.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-13 02:48:04 -0400
committerPaul Smith <psmith@gnu.org>2013-05-13 02:48:18 -0400
commitc7732bd5add31b38fea113c9ab4ad4d97a0870c7 (patch)
treea5a83eb8d54fa5cc32ab8e40ad619ca6d0f45d2f /default.c
parent2627d8322136eac2b499dd12e2769eb01d7c74bc (diff)
downloadgunmake-c7732bd5add31b38fea113c9ab4ad4d97a0870c7.tar.gz
Add a new variable: GNUMAKEFLAGS
This allows you to write portable makefiles that set GNU make-specific command line options in the environment or makefile: add them to GNUMAKEFLAGS instead of MAKEFLAGS and they will be seen by GNU make but ignored by other implementations of make.
Diffstat (limited to 'default.c')
-rw-r--r--default.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/default.c b/default.c
index 9f02dd4..4b24e2e 100644
--- a/default.c
+++ b/default.c
@@ -525,6 +525,8 @@ static const char *default_variables[] =
#endif
#endif /* !VMS */
+ /* Make this assignment to avoid undefined variable warnings. */
+ "GNUMAKEFLAGS", "",
0, 0
};