From c7acf4bf2a2d31494b0dd5819c1a621c2492ce7c Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 19 Jul 2015 11:50:54 +0200 Subject: Makefile: make systems='foo bar...' --- Makefile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b31eddd0..7225a5d6 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,22 @@ -ifndef system -$(error unbound variable: system) -else -include 0make/$(LOGNAME)/$(system).makefile +# +# usage: +# make system=foo +# make systems='foo bar' +# + .ONESHELL: .SHELLFLAGS := -eufc + +ifdef systems +$(systems): + parallel \ + --line-buffer \ + -j0 \ + --no-notice \ + --tagstring {} \ + -q make systems= system={} ::: $(systems) +else ifdef system +include 0make/$(LOGNAME)/$(system).makefile .PHONY: deploy deploy:;@ system_name=$(system) @@ -69,4 +82,6 @@ deploy:;@ result/bin/switch-to-configuration switch EOF +else +$(error unbound variable: system[s]) endif -- cgit v1.2.3