* [PATCH] make O=foo does not fail if foo does not exist
@ 2003-09-28 21:51 Kevin P. Fleming
0 siblings, 0 replies; only message in thread
From: Kevin P. Fleming @ 2003-09-28 21:51 UTC (permalink / raw)
To: Sam Ravnborg, LKML
Simple enough... I mistyped the path to the object directory, and the
build continued in the source directory anyway. This patch causes the
build to stop, although with a non-obvious error message. A better fix
would actually check KBUILD_OUTPUT after the cd && pwd test, but I'll
leave that to you if you're so inclined.
--- linux-2.6/Makefile~ Sat Sep 27 19:26:01 2003
+++ linux-2.6/Makefile Sun Sep 28 14:46:05 2003
@@ -81,7 +81,7 @@
ifneq ($(KBUILD_OUTPUT),)
# Invoke a second make in the output directory, passing relevant
variables
- KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT); /bin/pwd)
+ KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)
.PHONY: $(MAKECMDGOALS) all
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-28 21:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-28 21:51 [PATCH] make O=foo does not fail if foo does not exist Kevin P. Fleming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®