Module: sip-router
Branch: kamailio_3.0
Commit: f6b97e137b44a420d13eeeb45218df1e7b618393
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f6b97e1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Oct 29 00:50:54 2009 +0100
Makefile: adding data vars
- they are used to install shared resources from kamctl/kamdbctl
---
Makefile.defs | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/Makefile.defs b/Makefile.defs
index f6be32c..c43267d 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -213,30 +213,36 @@ lib_dir = lib/$(MAIN_NAME)/
ifeq ($(OS), linux)
doc_dir = share/doc/$(MAIN_NAME)/
man_dir = share/man/
+ data_dir = share/$(MAIN_NAME)/
LOCALBASE ?= /usr/local
else
ifeq ($(OS), freebsd)
doc_dir = share/doc/$(MAIN_NAME)/
man_dir = man/
+ data_dir = share/$(MAIN_NAME)/
LOCALBASE ?= /usr/local
else
ifeq ($(OS), openbsd)
doc_dir = share/doc/$(MAIN_NAME)/
man_dir = man/
+ data_dir = share/$(MAIN_NAME)/
LOCALBASE ?= /usr/local
else
ifeq ($(OS), netbsd)
doc_dir = share/doc/$(MAIN_NAME)/
man_dir = man/
+ data_dir = share/$(MAIN_NAME)/
LOCALBASE ?= /usr/pkg
else
ifeq ($(OS), darwin)
doc_dir = share/doc/$(MAIN_NAME)/
man_dir = man/
+ data_dir = share/$(MAIN_NAME)/
LOCALBASE ?= /usr/local
else
doc_dir = doc/$(MAIN_NAME)/
man_dir = man/
+ data_dir = $(MAIN_NAME)/
LOCALBASE ?= /usr/local
endif
endif
@@ -268,6 +274,7 @@ doc_prefix = $(basedir)$(prefix)
man_prefix = $(basedir)$(prefix)
ut_prefix = $(basedir)$(prefix)
share_prefix = $(basedir)$(prefix)
+data_prefix = $(basedir)$(prefix)
# target dirs for various stuff
@@ -276,6 +283,7 @@ bin_target = $(prefix)/$(bin_dir)
#modules_target = $(prefix)/$(modules_dir)
lib_target = $(prefix)/$(lib_dir)
doc_target = $(prefix)/$(doc_dir)
+data_target = $(prefix)/$(data_dir)
@@ -1942,8 +1950,8 @@ saved_chg_vars:=\
PREFIX prefix\
cfg_prefix cfg_dir bin_prefix bin_dir modules_prefix modules_dir \
doc_prefix doc_dir man_prefix man_dir ut_prefix ut_dir \
- share_prefix share_dir lib_prefix lib_dir \
- cfg_target lib_target
+ share_prefix share_dir lib_prefix lib_dir data_prefix data_dir \
+ cfg_target lib_target data_target
#export relevant variables to the sub-makes