forked from lenaRB/crml-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 826 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
## just a sample Makefile with graddle commands, will be improved
detected_OS ?= $(shell uname -s)
GRADLE_CMD=gradlew.bat
ifeq ($(detected_OS),Darwin)
GRADLE_CMD := ./gradlew
else ifeq (MINGW,$(findstring MINGW,$(detected_OS)))
GRADLE_CMD := ./gradlew
else
GRADLE_CMD := ./gradlew
endif
all: build
translate-tests:
$(GRADLE_CMD) translate --args="tests/unit/" --warning-mode all
parse-tests:
$(GRADLE_CMD) parse --args="tests/unit/" --warning-mode all
parse:
$(GRADLE_CMD) parse --args=$(DIR) --warning-mode all
translate:
$(GRADLE_CMD) translate --args=$(DIR) --warning-mode all
build:
$(GRADLE_CMD) build
cleanall: clean
clean:
rm -rf build bin generated
# beware, this will remove *everything* that is was not added in the git repo
gitclean:
git clean -fdx
distribution: all
$(GRADLE_CMD) shadowJar