Default debug target in makefile

This commit is contained in:
Imbus 2024-05-11 10:26:21 +02:00
parent f5cacad639
commit 32f164bcb5

View file

@ -1,6 +1,9 @@
PROJECT = $(shell basename $(CURDIR)) PROJECT = $(shell basename $(CURDIR))
GITHASH = $(shell git rev-parse --short HEAD) GITHASH = $(shell git rev-parse --short HEAD)
debug:
cargo run
release: release:
cargo build --release cargo build --release
tar -czf $(PROJECT)_$(GITHASH).tar.gz -C target/release $(PROJECT) tar -czf $(PROJECT)_$(GITHASH).tar.gz -C target/release $(PROJECT)
@ -19,4 +22,4 @@ sign: release source-release
minisign -Sm $(PROJECT)_$(GITHASH).tar.gz $(PROJECT)_$(GITHASH)_source.tar.gz minisign -Sm $(PROJECT)_$(GITHASH).tar.gz $(PROJECT)_$(GITHASH)_source.tar.gz
publish: sign publish: sign
scp $(PROJECT)_$(GITHASH).tar.gz* $(PROJECT)_$(GITHASH)_source.tar.gz* server:/public/$(PROJECT)/ scp $(PROJECT)_$(GITHASH).tar.gz* $(PROJECT)_$(GITHASH)_source.tar.gz* server:/public/$(PROJECT)/