summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-28 21:33:39 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-28 21:33:39 +0000
commit0f875c3664467ff73578818ed2f0e77513c0ad01 (patch)
tree39812e69a786f7e5a90e7b23f5943d177e42eb7f /Makefile
parentecab03293c5919cd6d0afccc46a2c5ff37e4f7e5 (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: https://origsvn.digium.com/svn/asterisk/trunk@36229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bbf3a6699..bebfbb8d6 100644
--- a/Makefile
+++ b/Makefile
@@ -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