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.
39 lines
937 B
39 lines
937 B
VERSION:= v1.0.0
|
|
FEATURES:= --features hash
|
|
|
|
all: clean deps sign trust
|
|
|
|
deps:
|
|
if [[ ! -d sha256_literal ]]; then \
|
|
git clone https://github.com/aguinet/sha256_literal || exit 1; \
|
|
fi
|
|
|
|
trust:
|
|
if [[ ! -f generator-$(VERSION) ]]; then \
|
|
make -B sign || exit 1; \
|
|
fi
|
|
ln -sf generator-$(VERSION) generator
|
|
|
|
|
|
generator-no-hash:
|
|
cd generator-native && cargo build --release
|
|
ln -sf generator-native/target/release/generator-native generator
|
|
cp -f `readlink generator` ./generator-$(VERSION)
|
|
|
|
|
|
generator:
|
|
cd generator-native && cargo build --release $(FEATURES)
|
|
ln -sf generator-native/target/release/generator-native generator
|
|
cp -f `readlink generator` ./generator-$(VERSION)
|
|
|
|
|
|
sign: generator
|
|
sha256sum ./generator-$(VERSION) | cut -d\ -f1 > generator-$(VERSION).sha256
|
|
gpg --sign ./generator-$(VERSION)
|
|
|
|
clean:
|
|
rm -f generator-v*
|
|
|
|
sfexec-output:
|
|
g++ -Iinclude/ -w --std=c++17 main.cpp sha256_literal/sha256.cpp -o sfexec
|