forked from streamr-dev/network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (34 loc) · 1.24 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
30
31
32
33
34
35
36
37
38
39
40
41
SHELL = /bin/bash
.SHELLFLAGS = -e -u -o pipefail -c
.DEFAULT_GOAL = docker-build
.PHONY: docker-build
docker-build:
docker build \
--no-cache \
--progress=plain \
--tag streamr/broker-node:dev .
##
## TEMPORARY scripts to pull remote changes into monorepo
##
# adds remote for a repo, if not already added
setup:
$(call setupRemote,network)
$(call setupRemote,broker)
$(call setupRemote,cli-tools)
$(call setupRemote,streamr-client-javascript)
$(call setupRemote,streamr-client-protocol-js)
$(call setupRemote,streamr-test-utils)
$(call setupRemote,streamr-client-testing)
define setupRemote
-(git remote get-url $1 || git remote add --no-tags -f $1 [email protected]:streamr-dev/$1.git)
endef
pull: setup
-mkdir -p packages
-git subtree pull --prefix=packages/network network master
-git subtree pull --prefix=packages/broker broker master
-git subtree pull --prefix=packages/cli-tools cli-tools master
-git subtree pull --prefix=packages/client streamr-client-javascript master
-git subtree pull --prefix=packages/protocol streamr-client-protocol-js master
-git subtree pull --prefix=packages/test-utils streamr-test-utils master
-git subtree pull --prefix=packages/cross-client-testing streamr-client-testing master
.PHONY: pull setup