diff options
-rw-r--r-- | tools/lib/traceevent/Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 51be8ab76f9f..8ea4368381f0 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile | |||
@@ -152,10 +152,8 @@ override CFLAGS += $(udis86-flags) -D_GNU_SOURCE | |||
152 | 152 | ||
153 | ifeq ($(VERBOSE),1) | 153 | ifeq ($(VERBOSE),1) |
154 | Q = | 154 | Q = |
155 | print_install = | ||
156 | else | 155 | else |
157 | Q = @ | 156 | Q = @ |
158 | print_install = echo ' INSTALL '$1; | ||
159 | endif | 157 | endif |
160 | 158 | ||
161 | do_compile_shared_library = \ | 159 | do_compile_shared_library = \ |
@@ -307,22 +305,25 @@ TAGS: force | |||
307 | --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/' | 305 | --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/' |
308 | 306 | ||
309 | define do_install | 307 | define do_install |
310 | $(print_install) \ | ||
311 | if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ | 308 | if [ ! -d '$(DESTDIR_SQ)$2' ]; then \ |
312 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ | 309 | $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \ |
313 | fi; \ | 310 | fi; \ |
314 | $(INSTALL) $1 '$(DESTDIR_SQ)$2' | 311 | $(INSTALL) $1 '$(DESTDIR_SQ)$2' |
315 | endef | 312 | endef |
316 | 313 | ||
317 | install_lib: all_cmd install_plugins | 314 | define do_install_plugins |
318 | $(Q)$(call do_install,$(LIB_FILE),$(bindir_SQ)) | 315 | for plugin in $1; do \ |
319 | 316 | $(call do_install,$$plugin,$(plugin_dir_SQ)); \ | |
320 | PLUGINS_INSTALL = $(subst .so,.install,$(PLUGINS)) | 317 | done |
318 | endef | ||
321 | 319 | ||
322 | $(PLUGINS_INSTALL): %.install : %.so force | 320 | install_lib: all_cmd install_plugins |
323 | $(Q)$(call do_install,$<,$(plugin_dir_SQ)) | 321 | $(call QUIET_INSTALL, $(LIB_FILE)) \ |
322 | $(call do_install,$(LIB_FILE),$(bindir_SQ)) | ||
324 | 323 | ||
325 | install_plugins: $(PLUGINS_INSTALL) | 324 | install_plugins: $(PLUGINS) |
325 | $(call QUIET_INSTALL, trace_plugins) \ | ||
326 | $(call do_install_plugins, $(PLUGINS)) | ||
326 | 327 | ||
327 | install: install_lib | 328 | install: install_lib |
328 | 329 | ||