-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
38 lines (28 loc) · 1.21 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
GIT=git
GRADLE=./gradlew # each project decides its own gradle via gradlew
.PHONY: install-dev
install-dev: install-submodules install-muli-classpath
.PHONY: install-muli-classpath
install-muli-classpath:
cd muli-classpath && $(GRADLE) install
.PHONY: install-muli-lang
install-muli-lang: install-muli-lang-submodules install-muli-classpath
.PHONY: install-muli-lang-submodules
install-muli-lang-submodules:
cd muli-lang && $(GIT) submodule update --init
.PHONY: install-root-submodules
install-root-submodules:
$(GIT) submodule update --init
.PHONY: install-submodules
install-submodules: install-root-submodules install-muli-lang-submodules
muli-env.zip: install-root-submodules install-muli-classpath
cd muli-env && $(GRADLE) distZip
cp "$$(ls -t ./muli-env/build/distributions/muli-env-* | head -1)" muli-env.zip
muli-env-st.zip: install-root-submodules install-muli-classpath
cd muli-env-st && $(GRADLE) distZip
cp "$$(ls -t ./muli-env-st/build/distributions/muli-env-st-* | head -1)" muli-env-st.zip
muli-lang.jar: install-root-submodules install-muli-lang
cd muli-lang && $(GRADLE) jar
cp "$$(ls -t ./muli-lang/muli-lang-*.jar | head -1)" muli-lang.jar
.PHONY: dist
dist: muli-env.zip muli-lang.jar muli-env-st.zip