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.

31 lines
750 B

VERSION:= v0.2.0
FEATURES:= --features hash
5 years ago
all: clean deps sign trust
deps:
if [[ ! -d sha256_literal ]]; then \
git clone https://github.com/aguinet/sha256_literal || exit 1; \
fi
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 $(FEATURES)
5 years ago
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