public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "George G. Davis" <gdavis@mvista.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Allow `make O=<obj> {cscope,tags}` to work
Date: Mon, 19 Jul 2004 13:17:59 -0400	[thread overview]
Message-ID: <20040719171759.GA1890@mvista.com> (raw)

Greetings,

Here's a trivial fix to allow `make O=<obj> {cscope,tags}` to work:


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/07/19 12:49:14-04:00 gdavis@davisg.ne.client2.attbi.com 
#   Makefile:
#     Allow `make O=<obj> {cscope,tags}` to work
# 
# Makefile
#   2004/07/19 12:28:02-04:00 gdavis@davisg.ne.client2.attbi.com +9 -9
#   Allow `make O=<obj> {cscope,tags}` to work
# 
diff -Nru a/Makefile b/Makefile
--- a/Makefile	2004-07-19 13:00:49 -04:00
+++ b/Makefile	2004-07-19 13:00:49 -04:00
@@ -1009,26 +1009,26 @@
 # ---------------------------------------------------------------------------
 
 define all-sources
-	( find . $(RCS_FIND_IGNORE) \
+	( find $(srctree) $(RCS_FIND_IGNORE) \
 	       \( -name include -o -name arch \) -prune -o \
 	       -name '*.[chS]' -print; \
-	  find arch/$(ARCH) $(RCS_FIND_IGNORE) \
+	  find $(srctree)/arch/$(ARCH) $(RCS_FIND_IGNORE) \
 	       -name '*.[chS]' -print; \
-	  find security/selinux/include $(RCS_FIND_IGNORE) \
+	  find $(srctree)/security/selinux/include $(RCS_FIND_IGNORE) \
 	       -name '*.[chS]' -print; \
-	  find include $(RCS_FIND_IGNORE) \
+	  find $(srctree)/include $(RCS_FIND_IGNORE) \
 	       \( -name config -o -name 'asm-*' \) -prune \
 	       -o -name '*.[chS]' -print; \
-	  find include/asm-$(ARCH) $(RCS_FIND_IGNORE) \
+	  find $(srctree)/include/asm-$(ARCH) $(RCS_FIND_IGNORE) \
 	       -name '*.[chS]' -print; \
-	  find include/asm-generic $(RCS_FIND_IGNORE) \
+	  find $(srctree)/include/asm-generic $(RCS_FIND_IGNORE) \
 	       -name '*.[chS]' -print )
 endef
 
-quiet_cmd_cscope-file = FILELST cscope.files
-      cmd_cscope-file = $(all-sources) > cscope.files
+quiet_cmd_cscope-file = FILELST $(obj)/cscope.files
+      cmd_cscope-file = $(all-sources) > $(obj)/cscope.files
 
-quiet_cmd_cscope = MAKE    cscope.out
+quiet_cmd_cscope = MAKE    $(obj)/cscope.out
       cmd_cscope = cscope -k -b -q
 
 cscope: FORCE


--
Regards,
George

             reply	other threads:[~2004-07-19 17:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-19 17:17 George G. Davis [this message]
2004-07-19 19:24 ` [PATCH] Allow `make O=<obj> {cscope,tags}` to work sam
2004-07-19 17:36   ` George G. Davis
2004-07-19 18:29     ` George G. Davis
2004-07-22 22:45       ` 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=20040719171759.GA1890@mvista.com \
    --to=gdavis@mvista.com \
    --cc=linux-kernel@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