@@ -133,6 +133,9 @@ htmldir := $(LOCAL_ROOT)/doc/html
133133doctmpdir := $(LOCAL_ROOT ) /doc/tmp
134134endif
135135
136+ # udica templates path
137+ udicatemplates := udica-templates
138+
136139# config file paths
137140globaltun := $(poldir ) /global_tunables
138141globalbool := $(poldir ) /global_booleans
@@ -167,6 +170,7 @@ sharedir := $(prefix)/share/selinux
167170modpkgdir := $(sharedir ) /$(strip $(NAME ) )
168171headerdir := $(modpkgdir ) /include
169172docsdir := $(prefix ) /share/doc/$(PKGNAME )
173+ udicatemplatesdir := $(prefix ) /share/udica/templates
170174
171175# enable MLS if requested.
172176ifeq "$(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),)
671684endif
672685endif
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