iced_demo/makefile

29 lines
733 B
Makefile
Raw Normal View History

2024-05-04 10:44:26 +02:00
PROJECT = $(shell basename $(CURDIR))
GITHASH = $(shell git rev-parse --short HEAD)
2024-05-11 10:26:21 +02:00
debug:
cargo run
2024-06-03 00:46:25 +02:00
build:
2024-05-04 10:44:26 +02:00
cargo build --release
2024-06-03 00:46:25 +02:00
ls -lh target/release/$(PROJECT)
release: build
2024-05-05 04:37:04 +02:00
tar -czf $(PROJECT)_$(GITHASH).tar.gz -C target/release $(PROJECT)
tar -tvf $(PROJECT)_$(GITHASH).tar.gz
2024-05-04 10:47:31 +02:00
clean:
cargo clean
2024-05-05 05:09:09 +02:00
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
2024-05-05 04:37:04 +02:00
2024-05-05 05:09:09 +02:00
sign: release source-release
minisign -Sm $(PROJECT)_$(GITHASH).tar.gz $(PROJECT)_$(GITHASH)_source.tar.gz
publish: sign
2024-05-11 10:26:21 +02:00
scp $(PROJECT)_$(GITHASH).tar.gz* $(PROJECT)_$(GITHASH)_source.tar.gz* server:/public/$(PROJECT)/