From: Brian Jackson <iggy@gentoo.org>
To: linux-kernel@vger.kernel.org
Cc: kai@germaschewski.name, sam@ravnborg.org
Subject: [PATCH] Makefile patch to create KBUILD_OUPUT if it doesn't exist
Date: Wed, 31 Mar 2004 16:47:35 -0600 [thread overview]
Message-ID: <200403311647.37184.iggy@gentoo.org> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It was probably intentional to not have the Makefile automagically create
KBUILD_OUPUT if it doesn't exist, but just in case, here's a patch which
makes it do just that. I'd appreciate feedback either way just so I know if
it's actually getting looked at or if it got lost somewhere along the way.
- --Brian Jackson
- --- Makefile.orig 2004-03-31 16:21:48.254691909 -0600
+++ Makefile 2004-03-31 16:34:27.507098249 -0600
@@ -88,10 +88,10 @@
ifneq ($(KBUILD_OUTPUT),)
# Invoke a second make in the output directory, passing relevant variables
# check that the output directory actually exists
+$(if $(wildcard $(KBUILD_OUTPUT)),, \
+ $(shell mkdir -p ${KBUILD_OUTPUT}))
saved-output := $(KBUILD_OUTPUT)
KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)
- -$(if $(wildcard $(KBUILD_OUTPUT)),, \
- - $(error output directory "$(saved-output)" does not exist))
.PHONY: $(MAKECMDGOALS)
- --
http://www.brianandsara.net
For Sale : http://www.brianandsara.net/temp/forsale.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAa0qH+cPN+Z7qK9cRAiB9AJ0dtkq92cgYTailSvEPBS2Z/iez9wCg0CA2
GBdCdX7RPUhe9EXdXn7Y6Yg=
=+vf2
-----END PGP SIGNATURE-----
next reply other threads:[~2004-03-31 22:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-31 22:47 Brian Jackson [this message]
2004-04-01 4:58 ` Sam Ravnborg
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=200403311647.37184.iggy@gentoo.org \
--to=iggy@gentoo.org \
--cc=kai@germaschewski.name \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.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
all inboxes | Powered by JetHome®