Makefile
This commit is contained in:
parent
325aea753b
commit
f5cacad639
1 changed files with 11 additions and 5 deletions
16
makefile
16
makefile
|
@ -8,9 +8,15 @@ release:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
cargo clean
|
cargo clean
|
||||||
rm *.tar.gz
|
rm -f *.tar.gz
|
||||||
rm $(PROJECT)
|
rm -f *.tar.gz.minisig
|
||||||
rm $(PROJECT).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
|
sign: release source-release
|
||||||
minisign -Sm $(PROJECT)_$(GITHASH).tar.gz
|
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)/
|
Loading…
Reference in a new issue