try to be smarter about NAME
This commit is contained in:
parent
6a73806474
commit
794a56ccf1
|
@ -1,6 +1,8 @@
|
|||
|
||||
NAME ?= refpolicy
|
||||
SHAREDIR := /usr/share/selinux
|
||||
AWK ?= gawk
|
||||
|
||||
NAME ?= $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config)
|
||||
SHAREDIR ?= /usr/share/selinux
|
||||
HEADERDIR := $(SHAREDIR)/$(NAME)/include
|
||||
|
||||
include $(HEADERDIR)/Makefile
|
||||
|
|
|
@ -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
|
||||
|
||||
# executables
|
||||
|
@ -11,17 +22,8 @@ SEMODULE := $(SBINDIR)/semodule
|
|||
SEMOD_PKG := $(BINDIR)/semodule_package
|
||||
XMLLINT := $(BINDIR)/xmllint
|
||||
|
||||
# helper tools
|
||||
AWK ?= gawk
|
||||
INSTALL ?= install
|
||||
M4 ?= m4
|
||||
SED ?= sed
|
||||
EINFO ?= echo
|
||||
PYTHON ?= python
|
||||
|
||||
# set default build options if missing
|
||||
TYPE ?= strict
|
||||
NAME ?= $(TYPE)
|
||||
DIRECT_INITRC ?= n
|
||||
POLY ?= n
|
||||
QUIET ?= y
|
||||
|
|
Loading…
Reference in New Issue