From 38107cc3d4864c0436c40e44016b66533fcde6ed Mon Sep 17 00:00:00 2001 From: Ondrej Mosnacek Date: Wed, 22 May 2019 09:00:23 +0200 Subject: Fix find commands in Makefiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this fix, building a custom module in a directory that contains a file with special characters in its name (e.g. '(') triggers a syntax error: $ cat >foo.te < Suggested-by: Petr Lautrbach Signed-off-by: Ondrej Mosnacek Signed-off-by: Jason Zaman --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dba38fc4..28bc1a52 100644 --- a/Makefile +++ b/Makefile @@ -261,9 +261,9 @@ user_default_contexts_names := $(addprefix $(contextpath)/users/,$(subst _defaul appfiles := $(addprefix $(appdir)/,default_contexts default_type initrc_context failsafe_context userhelper_context removable_context dbus_contexts sepgsql_contexts x_contexts customizable_types securetty_types lxc_contexts openrc_contexts virtual_domain_context virtual_image_context) $(contextpath)/files/media $(fcsubspath) $(user_default_contexts_names) net_contexts := $(builddir)net_contexts -all_layers := $(shell find $(wildcard $(moddir)/*) -maxdepth 0 -type d) +all_layers := $(shell find $(moddir)/* -maxdepth 0 -type d) ifdef LOCAL_ROOT -all_layers += $(shell find $(wildcard $(local_moddir)/*) -maxdepth 0 -type d) +all_layers += $(shell find $(local_moddir)/* -maxdepth 0 -type d) endif generated_te := $(basename $(foreach dir,$(all_layers),$(wildcard $(dir)/*.te.in))) -- cgit v1.2.3-65-gdbad