Merge pull request #647 from ClusterLabs/fix-distcheck-as-user

build: fix make distcheck as user vs root
main
Fabio M. Di Nitto 8 months ago committed by GitHub
commit 494e538257
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      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

Loading…
Cancel
Save