override doesnt do anything for +=, use ?= assignment to simplify NAME assignment.

This commit is contained in:
Chris PeBenito 2006-01-25 19:29:55 +00:00
parent a4fae7fa0c
commit 3f026a9092
1 changed files with 15 additions and 16 deletions

View File

@ -82,51 +82,50 @@ MODPKGDIR = $(DESTDIR)/usr/share/selinux/$(NAME)
# compile strict policy if requested. # compile strict policy if requested.
ifneq ($(findstring strict,$(TYPE)),) ifneq ($(findstring strict,$(TYPE)),)
override M4PARAM += -D strict_policy M4PARAM += -D strict_policy
endif endif
# compile targeted policy if requested. # compile targeted policy if requested.
ifneq ($(findstring targeted,$(TYPE)),) ifneq ($(findstring targeted,$(TYPE)),)
override M4PARAM += -D targeted_policy M4PARAM += -D targeted_policy
endif endif
# enable MLS if requested. # enable MLS if requested.
ifneq ($(findstring -mls,$(TYPE)),) ifneq ($(findstring -mls,$(TYPE)),)
override M4PARAM += -D enable_mls M4PARAM += -D enable_mls
override CHECKPOLICY += -M CHECKPOLICY += -M
override CHECKMODULE += -M CHECKMODULE += -M
endif endif
# enable MLS if MCS requested. # enable MLS if MCS requested.
ifneq ($(findstring -mcs,$(TYPE)),) ifneq ($(findstring -mcs,$(TYPE)),)
override M4PARAM += -D enable_mcs M4PARAM += -D enable_mcs
override CHECKPOLICY += -M CHECKPOLICY += -M
override CHECKMODULE += -M CHECKMODULE += -M
endif endif
# enable distribution-specific policy # enable distribution-specific policy
ifneq ($(DISTRO),) ifneq ($(DISTRO),)
override M4PARAM += -D distro_$(DISTRO) M4PARAM += -D distro_$(DISTRO)
endif endif
# enable polyinstantiation # enable polyinstantiation
ifeq ($(POLY),y) ifeq ($(POLY),y)
override M4PARAM += -D enable_polyinstantiation M4PARAM += -D enable_polyinstantiation
endif endif
ifneq ($(OUTPUT_POLICY),) ifneq ($(OUTPUT_POLICY),)
override CHECKPOLICY += -c $(OUTPUT_POLICY) CHECKPOLICY += -c $(OUTPUT_POLICY)
endif endif
ifeq ($(NAME),) # if not set, use the type as the name.
NAME := $(TYPE) NAME ?= $(TYPE)
endif
ifeq ($(DIRECT_INITRC),y) ifeq ($(DIRECT_INITRC),y)
override M4PARAM += -D direct_sysadm_daemon M4PARAM += -D direct_sysadm_daemon
endif endif
override M4PARAM += -D hide_broken_symptoms M4PARAM += -D hide_broken_symptoms
# we need exuberant ctags; unfortunately it is named # we need exuberant ctags; unfortunately it is named
# differently on different distros # differently on different distros