Makefile changes
This commit is contained in:
parent
8d2773047e
commit
d8e2c736dd
1 changed files with 21 additions and 1 deletions
22
makefile
22
makefile
|
@ -1,4 +1,9 @@
|
|||
GITHASH := $(shell git rev-parse --short HEAD)$(shell git diff-index --quiet HEAD || echo "-dirty")
|
||||
|
||||
TARNAME := xl-imbus-$(GITHASH).tar.gz
|
||||
|
||||
run:
|
||||
echo $(GITHASH)
|
||||
./gradlew run
|
||||
|
||||
watch:
|
||||
|
@ -6,12 +11,27 @@ watch:
|
|||
|
||||
build:
|
||||
./gradlew build
|
||||
#./gradlew shadowJar
|
||||
|
||||
clean:
|
||||
./gradlew clean
|
||||
rm -f *.tar.gz *.tar.gz.minisig *.zip *.jpg
|
||||
|
||||
test:
|
||||
./gradlew test
|
||||
|
||||
.PHONY: run build clean
|
||||
$(TARNAME):
|
||||
git ls-files -z | xargs -0 tar -czf $(TARNAME)
|
||||
|
||||
$(TARNAME).minisig: $(TARNAME)
|
||||
minisign -Sm $(TARNAME)
|
||||
|
||||
archive: $(TARNAME)
|
||||
|
||||
sign: $(TARNAME).minisig
|
||||
|
||||
publish: $(TARNAME) $(TARNAME).minisig
|
||||
scp $(TARNAME) server:/public/xl/$(TARNAME)
|
||||
scp $(TARNAME).minisig server:/public/xl/$(TARNAME).minisig
|
||||
|
||||
.PHONY: run watch build clean test archive sign publish
|
Loading…
Reference in a new issue