[cpp-linbuild] 02/02: SSPCPP-954 Implement per-platform build target

John W. O'Brien john at saltant.com
Sat Oct 8 00:36:11 UTC 2022


This is an automated email from the git hooks/post-receive script.

obrienjw pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=e862260b4af4f066c1250601a4cc245ce384a58a

commit e862260b4af4f066c1250601a4cc245ce384a58a
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Sat Oct 8 00:35:52 2022 +0000

    SSPCPP-954 Implement per-platform build target
---
 Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Makefile b/Makefile
index 0611746..7fcb89a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,9 +13,13 @@
 #
 # <plat>-image		Build Docker image for platform <plat>
 #
+# <plat>		Build all components on platform <plat> that are
+#			supported on that platform.
+#
 # <comp>		Build component <comp> on each supported platform
 #			<comp> is a virtual component name the actual
 #			products of which are a set of RPMs and SRPMs.
+#
 # <comp>_<plat>		Build component <comp> on platform <plat>
 #
 # run_container_<comp>_<plat>
@@ -186,6 +190,13 @@ endef
 
 $(foreach component,$(COMPONENTS),$(eval $(call validity-component,$(component))))
 
+# Building for each platform depends on all components valid on that platform
+define validity-platform
+$(1): $(foreach component,$(COMPONENTS),$(if $(filter $(1),$($(component)_VALID_PLATFORMS)),$($(component)_COMPNAME)_$(1)))
+endef
+
+$(foreach platform,$(PLATFORMS),$(eval $(call validity-platform,$(platform))))
+
 # Each component may depend on other components, generally or on
 # specific platforms
 define dependencies-component-platform

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list