From 7177abc57e37071b1680403dcbb30354a563e890 Mon Sep 17 00:00:00 2001 From: ddonyo Date: Fri, 10 Jan 2025 09:21:00 +0900 Subject: [PATCH] fix a incorrect substitution If you simply replace '.so' with '.install', the directory name of $(PLUGINS) will be changed to the wrong path name if it contains .so. (E.g, /home/jh.son/ -> /home/jh.installn/) solved the problem by chaning the substitution function to patsubst. --- lib/trace-cmd/plugins/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trace-cmd/plugins/Makefile b/lib/trace-cmd/plugins/Makefile index ed5a9cea..9559f731 100644 --- a/lib/trace-cmd/plugins/Makefile +++ b/lib/trace-cmd/plugins/Makefile @@ -30,7 +30,7 @@ $(DEPS): $(bdir)/.%.d: %.c $(PLUGIN_OBJS): $(bdir)/%.o : $(bdir)/.%.d -PLUGINS_INSTALL = $(subst .so,.install,$(PLUGINS)) +PLUGINS_INSTALL = $(patsubst %.so,%.install,$(PLUGINS)) $(PLUGINS_INSTALL): $(bdir)/%.install : $(bdir)/%.so force $(Q)$(call do_install_data,$<,$(plugin_tracecmd_dir_SQ))