From 9c9d675e6e2def063e36c4f1fccea2556d3039d5 Mon Sep 17 00:00:00 2001 From: Kenton Groombridge Date: Fri, 6 May 2022 21:00:02 -0400 Subject: [PATCH] makefile: add install target for udica templates Signed-off-by: Kenton Groombridge --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f5f5ef91..ccd3ad96b 100644 --- a/Makefile +++ b/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