From: John Kacur <jkacur@redhat.com>
To: rt-users <linux-rt-users@vger.kernel.org>
Cc: Clark Williams <williams@redhat.com>, John Kacur <jkacur@redhat.com>
Subject: [PATCH 3/7] Makefile: add target to create OBJDIR before use
Date: Wed, 14 Oct 2015 15:32:14 +0200 [thread overview]
Message-ID: <1444829538-18465-4-git-send-email-jkacur@redhat.com> (raw)
In-Reply-To: <1444829538-18465-1-git-send-email-jkacur@redhat.com>
From: Clark Williams <williams@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 5d7a23e6bbfd..1c3ae50030d6 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,10 @@ $(OBJDIR)/%.d: %.c
@$(CC) -MM $(CFLAGS) $(CPPFLAGS) $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@ || rm -f $@
.PHONY: all
-all: $(TARGETS) hwlatdetect
+all: $(OBJDIR) $(TARGETS) hwlatdetect
+
+$(OBJDIR):
+ mkdir $(OBJDIR)
# Include dependency files, automatically generate them if needed.
-include $(addprefix $(OBJDIR)/,$(sources:.c=.d))
--
2.4.3
next prev parent reply other threads:[~2015-10-14 13:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 13:32 [PATCH 0/7] rt-tests devel/v0.96 John Kacur
2015-10-14 13:32 ` [PATCH 1/7] cyclictest: Clean-ups in timerthread before working on it John Kacur
2015-10-14 13:32 ` [PATCH 2/7] Fix some trivial typos found by codespell(1) John Kacur
2015-10-14 13:32 ` John Kacur [this message]
2015-10-14 13:32 ` [PATCH 4/7] Makefile: OBJDIR should be an order-only-prerequisite John Kacur
2015-10-14 13:32 ` [PATCH 5/7] specfile: add signaltest manpage to files section and remove trailing whitespace in changelog John Kacur
2015-10-15 8:52 ` Uwe Kleine-König
2015-10-15 8:53 ` Uwe Kleine-König
2015-10-14 13:32 ` [PATCH 6/7] Makefile: have distclean remove .asc file for tarball John Kacur
2015-10-14 13:32 ` [PATCH 7/7] Makefile: Move TARGETS back to a more logical place in the Makefile John Kacur
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=1444829538-18465-4-git-send-email-jkacur@redhat.com \
--to=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=williams@redhat.com \
/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).