]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: fix make help & make *pkg
authorSam Ravnborg <sam@mars.ravnborg.org>
Tue, 21 Mar 2006 06:22:35 +0000 (07:22 +0100)
committerSam Ravnborg <sam@mars.ravnborg.org>
Tue, 21 Mar 2006 06:22:35 +0000 (07:22 +0100)
FORCE was not defined => error.
Use kbuild infrastructure to call down to the relevant
Makefile. This enables us to use the FORCE definition from kbuild.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index 3dbaac6d521d999e7ab41a2b6085fa62336f418c..0c223dfd30209d2d156ab8bc1881254ba2a87acc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -994,9 +994,9 @@ distclean: mrproper
 package-dir    := $(srctree)/scripts/package
 
 %pkg: FORCE
-       $(Q)$(MAKE) -f $(package-dir)/Makefile $@
+       $(Q)$(MAKE) $(build)=$(package-dir) $@
 rpm: FORCE
-       $(Q)$(MAKE) -f $(package-dir)/Makefile $@
+       $(Q)$(MAKE) $(build)=$(package-dir) $@
 
 
 # Brief documentation of the typical targets used
@@ -1034,7 +1034,7 @@ help:
        @echo  '  namespacecheck  - Name space analysis on compiled kernel'
        @echo  ''
        @echo  'Kernel packaging:'
-       @$(MAKE) -f $(package-dir)/Makefile help
+       @$(MAKE) $(build)=$(package-dir) help
        @echo  ''
        @echo  'Documentation targets:'
        @$(MAKE) -f $(srctree)/Documentation/DocBook/Makefile dochelp