build(selinux): remove debug messages, add comments in Makefile

main
Tsu-ba-me 9 months ago
parent bbddcb63c1
commit 2e8442012e
  1. 34
      selinux/Makefile.am

@ -9,7 +9,7 @@ SE_SRC_SUBNODE_TE = anvil-subnode.te
EXTRA_DIST = \
$(SE_SRC_SUBNODE_TE).in
# Variables:
# Magic variables:
# $@ : target name
# $< : first prerequisite
# $^ : all prerequisites
@ -17,10 +17,12 @@ EXTRA_DIST = \
# Command prefixes:
# - : ignore errors
# @ : don't print command
#
# Notes:
# - Environment variable DESTDIR is set at make call.
.PHONY: se-makefile
se-makefile:
-@echo "Making $@: $^"
if ! test -r "$(SE_MAKEFILE_PATH)"; then \
printf "\n*** %s\n*** %s\n\n" \
"Missing makefile from selinux devel." \
@ -29,43 +31,17 @@ se-makefile:
fi
$(SE_SRC_SUBNODE_TE): $(SE_SRC_SUBNODE_TE).in
-@echo "Making $@: $^"
-pwd
-ls -Al "$(srcdir)"
-ls -Al
cp -r -p --no-preserve=mode "$<" "$@"
-ls -Al "$(srcdir)"
-ls -Al
cp --preserve=ownership,timestamps "$<" "$@"
anvil-subnode.pp: se-makefile $(SE_SRC_SUBNODE_TE)
-@echo "Making $@: $^"
-pwd
-ls -Al "$(srcdir)"
-ls -Al
make -f "$(SE_MAKEFILE_PATH)" "$@"
-ls -Al "$(srcdir)"
-ls -Al
install-data-hook: anvil-subnode.pp
-@echo "Making $@: $^"
-pwd
-@echo "srcdir: $(srcdir)"
-@echo "destdir: $(destdir)"
-@echo "DESTDIR: $(DESTDIR)"
-@echo "datarootdir: $(datarootdir)"
install -D -m 0644 -t "$(DESTDIR)/$(SE_DIR)/packages/$(SE_TYPE)/" "anvil-subnode.pp"
uninstall-hook:
-@echo "Making $@: $^"
-pwd
-@echo "srcdir: $(srcdir)"
-@echo "destdir: $(destdir)"
-@echo "DESTDIR: $(DESTDIR)"
rm -f "$(DESTDIR)/$(SE_DIR)/packages/$(SE_TYPE)/anvil-subnode.pp"
clean-local:
-@echo "Making $@: $^"
-pwd
-ls -Al
rm -f *.fc *.if *.pp *.te
rm -rf tmp

Loading…
Cancel
Save