forked from seanhenry/MockGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 1003 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
APPCODE_BUILD=182.3684
.PHONY: bootstrap downloadcommunity updateandroid updateandroidtools buildcommunity ant maven
bootstrap: downloadcommunity updateandroid updateandroidtools buildcommunity maven
# 1 - path to repo
# 2 - remote url
define update_repo
if [ -d "$(1)/.git" ]; then \
cd $(1); \
git fetch --depth 1 origin $(APPCODE_BUILD); \
git checkout -b $(APPCODE_BUILD) FETCH_HEAD; \
else \
git clone --depth 1 $(2) $(1) -b $(APPCODE_BUILD); \
fi;
endef
downloadcommunity:
$(call update_repo,community,https://github.com/JetBrains/intellij-community.git)
updateandroid:
cd community; \
$(call update_repo,android,git://git.jetbrains.org/idea/android.git)
updateandroidtools:
cd community/android; \
$(call update_repo,tools-base,git://git.jetbrains.org/idea/adt-tools-base.git)
buildcommunity: ant
cd community; \
ant
ant:
if hash ant 2>/dev/null; then \
brew upgrade ant || true; \
else \
brew install ant; \
fi
maven:
cd UseCases; \
mvn install;