summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg2006-03-21 07:22:35 +0100
committerSam Ravnborg2006-03-21 07:22:35 +0100
commit6c2133e11b422b7379b5a660c639f7d53d18ca3b (patch)
treea4b76b5d1772d1ac6067bbe92a8a07e39647a60e /Makefile
parentkconfig: fix time ordering of writes to .kconfig.d and include/linux/autoconf.h (diff)
downloadkernel-qcow2-linux-6c2133e11b422b7379b5a660c639f7d53d18ca3b.tar.gz
kernel-qcow2-linux-6c2133e11b422b7379b5a660c639f7d53d18ca3b.tar.xz
kernel-qcow2-linux-6c2133e11b422b7379b5a660c639f7d53d18ca3b.zip
kbuild: fix make help & make *pkg
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3dbaac6d521d..0c223dfd3020 100644
--- 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