New 'make headers_install_all' target.
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 24 Sep 2006 21:16:03 +0000 (22:16 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 24 Sep 2006 21:16:03 +0000 (22:16 +0100)
Install headers for _all_ architectures, suitable for making a tarball
release or extracting them for use in a separate package.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Makefile

index 13448d755bb13abe88865e6781bc5e0bc02831b7..b78c88d1f1ac4e71f62ac707b85a8c1c184056a1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -892,6 +892,15 @@ depend dep:
 INSTALL_HDR_PATH=$(objtree)/usr
 export INSTALL_HDR_PATH
 
+HDRARCHES=$(filter-out generic,$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild)))
+
+PHONY += headers_install_all
+headers_install_all: include/linux/version.h
+       $(Q)unifdef -Ux /dev/null
+       $(Q)for arch in $(HDRARCHES); do \
+        $(MAKE) ARCH=$$arch -rR -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch ;\
+        done
+
 PHONY += headers_install
 headers_install: include/linux/version.h
        @if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \