-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
29 lines (22 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#*******************************************************************************
# Copyright (c) 2020 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html,
# or the MIT License which is available at https://opensource.org/licenses/MIT.
# SPDX-License-Identifier: EPL-2.0 OR MIT
#*******************************************************************************
SHELL=/usr/bin/env bash
AGENTS=agents.jsonnet
AGENTS_IDS:=$(shell jq -r '. | keys[]' <<<$$(jsonnet "$(AGENTS)" 2> /dev/null) || echo 'none')
.PHONY: all clean $(AGENTS_IDS)
.bashtools:
bash -c "$$(curl -fsSL https://raw.githubusercontent.com/completeworks/bashtools/master/install.sh)"
.dockertools: .bashtools
.bashtools/gitw sparsecheckout https://github.com/eclipse-cbi/dockertools.git $@
$(AGENTS_IDS): .dockertools
./build.sh $(AGENTS) $@
all: .dockertools
./build.sh $(AGENTS)
clean:
rm -rf .bashtools .dockertools target