From: Piotr Jaroszyński
Date: Thu, 29 Jul 2010 13:25:36 +0000 (+0200)
Subject: [build] Add everything target
X-Git-Tag: v1.20.1~2581
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d068fd53a3b80cbec86be96bb03e77c4515bc5b;p=thirdparty%2Fipxe.git
[build] Add everything target
The everything target builds multiple image types on each supported
arch/platform combination.
Signed-off-by: Piotr Jaroszyński
Modified-by: Michael Brown
Signed-off-by: Michael Brown
---
diff --git a/src/Makefile b/src/Makefile
index 950a13f69..4dd761c1f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -97,8 +97,9 @@ INCDIRS += include .
# Default build target: build the most common targets and print out a
# helpfully suggestive message
#
-all : bin/blib.a bin/ipxe.dsk bin/ipxe.iso bin/ipxe.usb bin/undionly.kpxe \
- bin/rtl8139.rom
+ALL := bin/blib.a bin/ipxe.dsk bin/ipxe.iso bin/ipxe.usb \
+ bin/undionly.kpxe bin/rtl8139.rom
+all : $(ALL)
@$(ECHO) '==========================================================='
@$(ECHO)
@$(ECHO) 'To create a bootable floppy, type'
@@ -121,6 +122,19 @@ all : bin/blib.a bin/ipxe.dsk bin/ipxe.iso bin/ipxe.usb bin/undionly.kpxe \
@$(ECHO)
@$(ECHO) '==========================================================='
+###############################################################################
+#
+# Comprehensive build target: build a selection of cross-platform
+# targets to expose potential build errors that show up only on
+# certain platforms
+#
+everything :
+ $(Q)$(MAKE) --no-print-directory $(ALL) \
+ bin-i386-efi/ipxe.efi bin-i386-efi/ipxe.efidrv \
+ bin-i386-efi/ipxe.efirom \
+ bin-x86_64-efi/ipxe.efi bin-x86_64-efi/ipxe.efidrv \
+ bin-x86_64-efi/ipxe.efirom
+
###############################################################################
#
# Build targets that do nothing but might be tried by users