forked from pcal43/quicksort
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (36 loc) · 810 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
.PHONY: clean
clean:
rm -rf build
.PHONY: jar
jar:
./gradlew remapJar
ls -1 build/libs
test:
./gradlew test
.PHONY: release
release:
ifndef SKIP_CHECKS
@gitStatus=$$(git status --porcelain) ;\
if [ "$${gitStatus}" != "" ]; then \
echo $${gitStatus} ;\
echo "You have uncommitted work."; echo; false; \
fi
@currentBranch=$$(git rev-parse --abbrev-ref HEAD) ;\
if [ "$${currentBranch}" != "main" ]; then \
echo "Releases must be performed on main"; false; \
fi
endif
# todo port this into the makefile. i think
./release-github.sh
./release-curseforge.sh
./release-modrinth.sh
./release-post.sh
.PHONY: ide
ide:
./gradlew cleanIdea idea
.PHONY: pr
pr:
firefox https://github.com/pcal43/gitback/pulls
.PHONY: deps
deps:
./gradlew -q dependencies --configuration runtimeClasspath