aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-01 18:30:06 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-01 18:30:06 +0000
commit392bf065fc160594befe497323b7605ea5eec4bb (patch)
treeec37311e694c30a7fc7ff4ae645423004854456c /Makefile
parent49d3caa9242a8808540c1c21d94d5f235ac1db85 (diff)
Fix a problem that cuased AST_DATA_DIR in defaults.h to be empty. The cause is
that since ASTDATADIR is explicitly exported using "export ASTDATADIR" at the top of the Makefile, make no longer considers the variable "undefined", so the Makefile can't use ?= to set ASTDATADIR if not yet set. (issue #8063, reported by akohlsmith, fixed by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44125 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e72fbf437..fc130f6ec 100644
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,9 @@ else
ASTVARLIBDIR=$(localstatedir)/lib/asterisk
endif
endif
-ASTDATADIR?=$(ASTVARLIBDIR)
+ifeq ($(ASTDATADIR),)
+ ASTDATADIR:=$(ASTVARLIBDIR)
+endif
# Asterisk.conf is located in ASTETCDIR or by using the -C flag
# when starting Asterisk