-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (34 loc) · 874 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
# Expecting Java 17 in $PATH
.PHONY: build
build: forge neoforge fabric
.PHONY: forge
forge: dist
cd forge;./gradlew build
cp forge/build/libs/*.jar dist/
.PHONY: neoforge
neoforge: dist
cd neoforge;./gradlew build
cp neoforge/build/libs/*.jar dist/
.PHONY: fabric
fabric: dist
cd fabric;./gradlew build
cp fabric/build/libs/*.jar dist/
dist:
mkdir -p dist
.PHONY: test
test:
cd forge;./gradlew test jacocoTestReport
# Test Coverage Report location:
# xdg-open ${PWD}/forge/build/reports/jacoco/test/html/index.html
.PHONY: screenshots
screenshots:
# Collect screenshots
mkdir -p screenshots
mv fabric/run/screenshots/* screenshots/ || true
mv forge/run/screenshots/* screenshots/ || true
mv neoforge/runs/client/screenshots/* screenshots/ || true
.PHONY: clean
clean:
cd fabric;./gradlew clean
cd forge;./gradlew clean
cd neoforge;./gradlew clean