diff --git a/makefile b/makefile index 44f30d9..19fce4f 100644 --- a/makefile +++ b/makefile @@ -3,13 +3,14 @@ GITHASH = $(shell git rev-parse --short HEAD) release: cargo build --release - cp target/release/$(PROJECT) $(PROJECT) - strip $(PROJECT) - tar -czf $(PROJECT)_$(GITHASH).tar.gz $(PROJECT) - minisign -Sm $(PROJECT).tar.gz + 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