kbuild: make versioncheck work in KBUILD_OUTDIR
Peter Foley [Tue, 26 Apr 2011 21:19:28 +0000 (17:19 -0400)]
This patch fixes the versioncheck target so it works when make is
invoked in KBUILD_OUTDIR.

Signed-off-by: Peter Foley <pefoley2@verizon.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Makefile

index 9b6610e..bfe3e36 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1401,7 +1401,7 @@ includecheck:
                | xargs $(PERL) -w $(srctree)/scripts/checkincludes.pl
 
 versioncheck:
-       find * $(RCS_FIND_IGNORE) \
+       find $(srctree)/* $(RCS_FIND_IGNORE) \
                -name '*.[hcS]' -type f -print | sort \
                | xargs $(PERL) -w $(srctree)/scripts/checkversion.pl