makefile: add install target for udica templates
Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
parent
f95131dadf
commit
9c9d675e6e
15
Makefile
15
Makefile
|
@ -133,6 +133,9 @@ htmldir := $(LOCAL_ROOT)/doc/html
|
|||
doctmpdir := $(LOCAL_ROOT)/doc/tmp
|
||||
endif
|
||||
|
||||
# udica templates path
|
||||
udicatemplates := udica-templates
|
||||
|
||||
# config file paths
|
||||
globaltun := $(poldir)/global_tunables
|
||||
globalbool := $(poldir)/global_booleans
|
||||
|
@ -167,6 +170,7 @@ sharedir := $(prefix)/share/selinux
|
|||
modpkgdir := $(sharedir)/$(strip $(NAME))
|
||||
headerdir := $(modpkgdir)/include
|
||||
docsdir := $(prefix)/share/doc/$(PKGNAME)
|
||||
udicatemplatesdir := $(prefix)/share/udica/templates
|
||||
|
||||
# enable MLS if requested.
|
||||
ifeq "$(TYPE)" "mls"
|
||||
|
@ -590,6 +594,15 @@ install-src:
|
|||
mkdir -p $(srcpath)/policy
|
||||
cp -R . $(srcpath)/policy
|
||||
|
||||
########################################
|
||||
#
|
||||
# Install udica templates
|
||||
#
|
||||
install-udica-templates:
|
||||
@mkdir -p $(udicatemplatesdir)
|
||||
@echo "Installing udica templates"
|
||||
$(verbose) $(INSTALL) -m 644 $(wildcard $(udicatemplates)/*) $(udicatemplatesdir)
|
||||
|
||||
########################################
|
||||
#
|
||||
# Generate tags file
|
||||
|
@ -671,4 +684,4 @@ ifneq ($(generated_fc),)
|
|||
endif
|
||||
endif
|
||||
|
||||
.PHONY: install-src install-appconfig install-headers build-interface-db generate xml conf html bare tags
|
||||
.PHONY: install-src install-appconfig install-headers install-udica-templates build-interface-db generate xml conf html bare tags
|
||||
|
|
Loading…
Reference in New Issue