aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2020-12-15 23:36:40 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-12-16 14:57:00 -0500
commit5321164ae5b16ecf448e46b44a7b887e503a4c6c (patch)
tree1234433341aedc544987f1b9b6174fa6616f0f63
parent2146a81b298d1a4071d9b91a72e70743be2ca790 (diff)
downloadlibtraceevent-5321164ae5b16ecf448e46b44a7b887e503a4c6c.tar.gz
libtraceevent: Keep build_install file around
Instead of rebuilding the build_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. Link: https://lore.kernel.org/linux-trace-devel/20201216043717.176014003@goodmis.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f795e05..f96232b 100644
--- a/Makefile
+++ b/Makefile
@@ -319,7 +319,7 @@ 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
@@ -332,7 +332,6 @@ endef
uninstall: $(BUILD_OUTPUT)/build_uninstall
@$(foreach file,$(shell cat $(BUILD_OUTPUT)/build_uninstall),$(call uninstall_file,$(file)))
- $(Q)$(RM) $<
PHONY += doc
doc: