Skip to content

Commit 9c9d675

Browse files
committed
makefile: add install target for udica templates
Signed-off-by: Kenton Groombridge <[email protected]>
1 parent f95131d commit 9c9d675

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ htmldir := $(LOCAL_ROOT)/doc/html
133133
doctmpdir := $(LOCAL_ROOT)/doc/tmp
134134
endif
135135

136+
# udica templates path
137+
udicatemplates := udica-templates
138+
136139
# config file paths
137140
globaltun := $(poldir)/global_tunables
138141
globalbool := $(poldir)/global_booleans
@@ -167,6 +170,7 @@ sharedir := $(prefix)/share/selinux
167170
modpkgdir := $(sharedir)/$(strip $(NAME))
168171
headerdir := $(modpkgdir)/include
169172
docsdir := $(prefix)/share/doc/$(PKGNAME)
173+
udicatemplatesdir := $(prefix)/share/udica/templates
170174

171175
# enable MLS if requested.
172176
ifeq "$(TYPE)" "mls"
@@ -590,6 +594,15 @@ install-src:
590594
mkdir -p $(srcpath)/policy
591595
cp -R . $(srcpath)/policy
592596

597+
########################################
598+
#
599+
# Install udica templates
600+
#
601+
install-udica-templates:
602+
@mkdir -p $(udicatemplatesdir)
603+
@echo "Installing udica templates"
604+
$(verbose) $(INSTALL) -m 644 $(wildcard $(udicatemplates)/*) $(udicatemplatesdir)
605+
593606
########################################
594607
#
595608
# Generate tags file
@@ -671,4 +684,4 @@ ifneq ($(generated_fc),)
671684
endif
672685
endif
673686

674-
.PHONY: install-src install-appconfig install-headers build-interface-db generate xml conf html bare tags
687+
.PHONY: install-src install-appconfig install-headers install-udica-templates build-interface-db generate xml conf html bare tags

0 commit comments

Comments
 (0)