You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
590 B

5 years ago
VERSION:= v0.1.0
5 years ago
all: clean sign trust
5 years ago
trust:
if [[ ! -f generator-$(VERSION) ]]; then \
5 years ago
make -B sign || exit 1; \
5 years ago
fi
ln -sf generator-$(VERSION) generator
5 years ago
5 years ago
generator:
cd generator-native && cargo build --release
ln -sf generator-native/target/release/generator-native generator
5 years ago
cp -f `readlink generator` ./generator-$(VERSION)
5 years ago
sign: generator
sha256sum ./generator-$(VERSION) | cut -d\ -f1 > generator-$(VERSION).sha256
5 years ago
gpg --sign ./generator-$(VERSION)
clean:
rm -f generator-v*
5 years ago
5 years ago
sfexec-output:
g++ -Iinclude/ -w --std=c++17 main.cpp sha256_literal/sha256.cpp -o sfexec