Default debug target in makefile
This commit is contained in:
parent
f5cacad639
commit
32f164bcb5
1 changed files with 4 additions and 1 deletions
5
makefile
5
makefile
|
@ -1,6 +1,9 @@
|
|||
PROJECT = $(shell basename $(CURDIR))
|
||||
GITHASH = $(shell git rev-parse --short HEAD)
|
||||
|
||||
debug:
|
||||
cargo run
|
||||
|
||||
release:
|
||||
cargo build --release
|
||||
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
|
||||
|
||||
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)/
|
||||
|
|
Loading…
Reference in a new issue