diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-28 21:33:39 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-28 21:33:39 +0000 |
commit | f06ba80021e0c99081106ca7f58514db8bb43543 (patch) | |
tree | 39812e69a786f7e5a90e7b23f5943d177e42eb7f /Makefile | |
parent | 85ea88fcc2507d82ed2f3637fd35256309757b40 (diff) |
?= just checks to see if a variable is not yet defined. If MENUSELECT_CFLAGS
was not found in the user level makeopts file, the variable is defined, but
empty.
I wish we could just require GNU make 3.81 :)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36229 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -134,7 +134,9 @@ OTHER_SUBDIR_CFLAGS=-I../include -I.. ifeq ($(origin MENUSELECT_CFLAGS),undefined) MENUSELECT_CFLAGS:=$(shell grep MENUSELECT_CFLAGS $(USER_MAKEOPTS) .) - MENUSELECT_CFLAGS?=$(shell grep MENUSELECT_CFLAGS $(GLOBAL_MAKEOPTS) .) + ifeq ($(MENUSELECT_CFLAGS),) + MENUSELECT_CFLAGS:=$(shell grep MENUSELECT_CFLAGS $(GLOBAL_MAKEOPTS) .) + endif ifneq ($(MENUSELECT_CFLAGS),) MENUSELECT_CFLAGS:=$(shell echo $(MENUSELECT_CFLAGS) | cut -f2 -d'=') endif |