From f5cacad639253c9a223905a00447b39e17e18f9a Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 5 May 2024 05:09:09 +0200 Subject: [PATCH] Makefile --- makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index 19fce4f..e652af7 100644 --- a/makefile +++ b/makefile @@ -8,9 +8,15 @@ release: clean: cargo clean - rm *.tar.gz - rm $(PROJECT) - rm $(PROJECT).tar.gz.minisig + rm -f *.tar.gz + rm -f *.tar.gz.minisig + +source-release: + git archive --format=tar.gz --prefix=$(PROJECT)/ -o $(PROJECT)_$(GITHASH)_source.tar.gz HEAD + tar -tvf $(PROJECT)_$(GITHASH)_source.tar.gz -sign: release - minisign -Sm $(PROJECT)_$(GITHASH).tar.gz +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)/ \ No newline at end of file