-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (34 loc) · 958 Bytes
/
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
42
43
44
45
46
47
48
# Default user is N4SJAMK
# If you want to clone your own fork, just pass your github
# username as the USER variable
USER=N4SJAMK
# By default the repositories are cloned over ssh. If you
# want to clone with http, define the HTTP variable
ifdef SSH
REPO_URL="[email protected]:$(USER)"
else
REPO_URL="https://github.com/$(USER)"
endif
all: pull
# Clones all the repositories
clone: api io img client-react
api:
git clone $(REPO_URL)/teamboard-api.git api
io:
git clone $(REPO_URL)/teamboard-io.git io
client-react:
git clone $(REPO_URL)/teamboard-client-react.git client-react
img:
git clone $(REPO_URL)/teamboard-img img
# Executes `git pull` in each of the repositories
pull: api_pull io_pull img_pull client-react_pull
api_pull: api
cd api; git pull; cd -
io_pull: io
cd io; git pull; cd -
client-react_pull: client-react
cd client-react; git pull; cd -
img_pull: img
cd img; git pull; cd -
clean:
rm -rf api img client-react io