diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-12-15 22:09:33 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-12-15 22:09:33 -0500 |
commit | 87972be98667069ad7cce2dcb1b7d2aff12dc3e0 (patch) | |
tree | c1859d7197846326a10b11c7fa06de59d680cd5b | |
parent | e326dae31928426401c29b60bce3a8140d2622fe (diff) | |
download | trace-cmd.tar.gz |
trace-cmd: Keep build_install files aroundtrace-cmd
Instead of rebuilding the build_install and build_libs_install files every
time the uninstall is created, make it depend on the prefix, as if the
prefix is the same, then the uninstall should be the same.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -25,3 +25,5 @@ trace_python_dir tracecmd_plugin_dir libtracecmd.pc build_prefix +build_install +build_libs_install @@ -496,12 +496,12 @@ define build_uninstall_script $(Q)$(RM) -rf $(BUILD_OUTPUT)/tmp_build endef -build_uninstall: +build_uninstall: $(BUILD_PREFIX) $(call build_uninstall_script,install,uninstall) $(BUILD_OUTPUT)/build_uninstall: build_uninstall -build_libs_uninstall: +build_libs_uninstall: $(BUILD_PREFIX) $(call build_uninstall_script,install_libs,libs_uninstall) $(BUILD_OUTPUT)/build_libs_uninstall: build_libs_uninstall @@ -514,11 +514,9 @@ endef uninstall: $(BUILD_OUTPUT)/build_uninstall @$(foreach file,$(shell cat $(BUILD_OUTPUT)/build_uninstall),$(call uninstall_file,$(file))) - $(Q)$(RM) $< uninstall_libs: $(BUILD_OUTPUT)/build_libs_uninstall @$(foreach file,$(shell cat $(BUILD_OUTPUT)/build_libs_uninstall),$(call uninstall_file,$(file))) - $(Q)$(RM) $< ##### PYTHON STUFF ##### |