try to be smarter about NAME

This commit is contained in:
Chris PeBenito 2006-02-22 18:30:15 +00:00
parent 6a73806474
commit 794a56ccf1
2 changed files with 16 additions and 12 deletions

View File

@ -1,6 +1,8 @@
NAME ?= refpolicy AWK ?= gawk
SHAREDIR := /usr/share/selinux
NAME ?= $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config)
SHAREDIR ?= /usr/share/selinux
HEADERDIR := $(SHAREDIR)/$(NAME)/include HEADERDIR := $(SHAREDIR)/$(NAME)/include
include $(HEADERDIR)/Makefile include $(HEADERDIR)/Makefile

View File

@ -1,5 +1,16 @@
HEADERDIR ?= /usr/share/selinux/refpolicy # helper tools
AWK ?= gawk
INSTALL ?= install
M4 ?= m4
SED ?= sed
EINFO ?= echo
PYTHON ?= python
NAME ?= $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config)
SHAREDIR ?= /usr/share/selinux
HEADERDIR ?= $(SHAREDIR)/$(NAME)/include
include $(HEADERDIR)/build.conf include $(HEADERDIR)/build.conf
# executables # executables
@ -11,17 +22,8 @@ SEMODULE := $(SBINDIR)/semodule
SEMOD_PKG := $(BINDIR)/semodule_package SEMOD_PKG := $(BINDIR)/semodule_package
XMLLINT := $(BINDIR)/xmllint XMLLINT := $(BINDIR)/xmllint
# helper tools
AWK ?= gawk
INSTALL ?= install
M4 ?= m4
SED ?= sed
EINFO ?= echo
PYTHON ?= python
# set default build options if missing # set default build options if missing
TYPE ?= strict TYPE ?= strict
NAME ?= $(TYPE)
DIRECT_INITRC ?= n DIRECT_INITRC ?= n
POLY ?= n POLY ?= n
QUIET ?= y QUIET ?= y