defs.mk: Set default values for some variables

- Make jannet default customer
  - Add default variables OS, SYSCONFIG_FILE, CONFIG_DIR and CONFIG_FILE
This commit is contained in:
Jan Lindemann 2007-06-30 12:42:10 +00:00 committed by Jan Lindemann
commit c775679418

View file

@ -6,7 +6,7 @@
PROJECT ?= $(shell (cd $(TOPDIR); basename `pwd`))
PROJECT_DESCR ?= No description
CUSTOMER ?= No customer
CUSTOMER ?= jannet
VERSION ?= $(shell cat $(TOPDIR)/VERSION)
DIST_VERSION ?= $(shell sed -e "s/-dev//" $(TOPDIR)/VERSION)
HEX_VERSION = $(shell echo $(DIST_VERSION) | \
@ -16,6 +16,21 @@ USE_PROJECT_LIB ?= true
USE_YTOOLS ?= true
REENTRANT ?= true
USE_GFILTER ?= true
OS ?= $(shell sh $(MODDIR)/bin/get_os.sh)
ifneq ($(shell echo $(OS) | cut -d: -f1),suse-9)
SYSCONFIG_FILE ?= /etc/rc.config
else
SYSCONFIG_FILE ?= /etc/sysconfig/$(PROJECT)
endif
ifeq ($(DEVELOPMENT),true)
CONFIG_DIR ?= $(PREFIX)/etc
else
CONFIG_DIR ?= /etc/opt/jannet
endif
CONFIG_FILE ?= $(CONFIG_DIR)/$(PROJECT).conf
export REENTRANT