16 lines
362 B
Makefile
16 lines
362 B
Makefile
PROJECT = $(shell basename $(CURDIR))
|
|
GITHASH = $(shell git rev-parse --short HEAD)
|
|
|
|
release:
|
|
cargo build --release
|
|
tar -czf $(PROJECT)_$(GITHASH).tar.gz -C target/release $(PROJECT)
|
|
tar -tvf $(PROJECT)_$(GITHASH).tar.gz
|
|
|
|
clean:
|
|
cargo clean
|
|
rm *.tar.gz
|
|
rm $(PROJECT)
|
|
rm $(PROJECT).tar.gz.minisig
|
|
|
|
sign: release
|
|
minisign -Sm $(PROJECT)_$(GITHASH).tar.gz
|