From: Steven Rostedt <rostedt@goodmis.org>
To: linux-trace-devel@vger.kernel.org
Subject: [PATCH 4/6] libtraceevent: Have make clean honor the output (O=foo) directory
Date: Tue, 08 Dec 2020 23:19:50 -0500 [thread overview]
Message-ID: <20201209042120.699002789@goodmis.org> (raw)
In-Reply-To: 20201209041946.131377586@goodmis.org
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
If "make O=/some/dir clean" is performed, the O=/some/dir is not honored,
and the clean is performed on the current directory. If O= is specified on
the command line, then the clean should perform the cleaning to that
directory.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
Makefile | 4 ++--
plugins/Makefile | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 3f96c1c7b4d6..330c8339f023 100644
--- a/Makefile
+++ b/Makefile
@@ -255,8 +255,8 @@ install: install_lib
clean: clean_plugins
$(call QUIET_CLEAN, libtraceevent) \
- $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d .*.cmd; \
- $(RM) TRACEEVENT-CFLAGS tags TAGS; \
+ $(RM) $(OUTPUT)*.o $(OUTPUT)*~ $(TARGETS) $(OUTPUT)*.a $(OUTPUT)*.so $(VERSION_FILES) $(OUTPUT).*.d $(OUTPUT).*.cmd; \
+ $(RM) TRACEEVENT-CFLAGS $(OUTPUT)tags $(OUTPUT)TAGS; \
$(RM) $(PKG_CONFIG_FILE)
PHONY += doc
diff --git a/plugins/Makefile b/plugins/Makefile
index 8ae3882f9051..a8868d01b09b 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -210,8 +210,9 @@ install: $(PLUGINS)
clean:
$(call QUIET_CLEAN, trace_plugins) \
- $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d .*.cmd; \
- $(RM) $(OUTPUT)libtraceevent-dynamic-list \
+ $(RM) $(OUTPUT)*.o $(OUTPUT)*~ $(TARGETS) $(OUTPUT)*.a $(OUTPUT)*.so $(VERSION_FILES) .*.d .*.cmd; \
+ $(RM) $(OUTPUT)libtraceevent-dynamic-list; \
+ $(RM) $(PLUGINS); \
$(RM) TRACEEVENT-CFLAGS tags TAGS;
PHONY += force plugins
--
2.29.2
next prev parent reply other threads:[~2020-12-09 4:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 4:19 [PATCH 0/6] libtraceevent: Clean up source directory Steven Rostedt
2020-12-09 4:19 ` [PATCH 1/6] libtraceevent: Use macro names for libtraceevent library binaries Steven Rostedt
2020-12-09 4:19 ` [PATCH 2/6] libtraceevent: Remove "src" and "obj" from Makefile Steven Rostedt
2020-12-09 4:19 ` [PATCH 3/6] libtraceevent: Move creation of PKG_CONFIG_FILE to after Makefile.include Steven Rostedt
2020-12-09 4:19 ` Steven Rostedt [this message]
2020-12-09 4:19 ` [PATCH 5/6] libtraceevent: Have binary libraries build into lib directory Steven Rostedt
2020-12-09 4:19 ` [PATCH 6/6] libtraceevent: Move source files into src/ directory Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201209042120.699002789@goodmis.org \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).