From def90f2daac48d55f6be81c4d09b6dccdeaf1751 Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Sat, 20 Apr 2024 07:45:25 +0200 Subject: [PATCH] build: fix make distcheck as user vs root use proper autotool way to install / uninstall files Signed-off-by: Fabio M. Di Nitto --- selinux/Makefile.am | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/selinux/Makefile.am b/selinux/Makefile.am index 90e464b7..4bd40204 100644 --- a/selinux/Makefile.am +++ b/selinux/Makefile.am @@ -1,14 +1,15 @@ MAINTAINERCLEANFILES = Makefile.in -SE_DIR = /usr/share/selinux -SE_MAKEFILE_PATH = $(SE_DIR)/devel/Makefile -SE_TYPE = targeted +SE_MAKEFILE_PATH = /usr/share/selinux/devel/Makefile SE_SRC_SUBNODE_TE = anvil-subnode.te EXTRA_DIST = \ $(SE_SRC_SUBNODE_TE).in +selinuxdir = $(datarootdir)/selinux/packages/targeted +selinux_DATA = anvil-subnode.pp + # Magic variables: # $@ : target name # $< : first prerequisite @@ -36,12 +37,6 @@ $(SE_SRC_SUBNODE_TE): $(SE_SRC_SUBNODE_TE).in anvil-subnode.pp: se-makefile $(SE_SRC_SUBNODE_TE) make -f "$(SE_MAKEFILE_PATH)" "$@" -install-data-hook: anvil-subnode.pp - install -D -m 0644 -t "$(DESTDIR)/$(SE_DIR)/packages/$(SE_TYPE)/" "anvil-subnode.pp" - -uninstall-hook: - rm -f "$(DESTDIR)/$(SE_DIR)/packages/$(SE_TYPE)/anvil-subnode.pp" - clean-local: rm -f *.fc *.if *.pp *.te rm -rf tmp