Skip to content

Commit

Permalink
autotools: Use same conventions for all pregenerated files
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Apr 25, 2023
1 parent 08f4b16 commit e1b9ce8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ precompute_ecmult_gen_LDADD = $(COMMON_LIB)
# otherwise make's decision whether to rebuild them (even in the first
# build by a normal user) depends on mtimes, and thus is very fragile.
# This means that rebuilds of the prebuilt files always need to be
# forced by deleting them, e.g., by invoking `make clean-precomp`.
# forced by deleting them.
src/precomputed_ecmult.c:
$(MAKE) $(AM_MAKEFLAGS) precompute_ecmult$(EXEEXT)
./precompute_ecmult$(EXEEXT)
Expand All @@ -224,14 +224,17 @@ clean-precomp:
rm -f $(PRECOMP)

### Pregenerated test vectors
### (see the comments in the previous section for detailed rationale)
TESTVECTORS = src/wycheproof/ecdsa_secp256k1_sha256_bitcoin_test.h

src/wycheproof/ecdsa_secp256k1_sha256_bitcoin_test.h:
python3 tools/tests_wycheproof_generate.py src/wycheproof/ecdsa_secp256k1_sha256_bitcoin_test.json > $@

testvectors: $(TESTVECTORS)

maintainer-clean-testvectors: clean-testvectors
BUILT_SOURCES += $(TESTVECTORS)

maintainer-clean-local: clean-testvectors

clean-testvectors:
rm -f $(TESTVECTORS)
Expand Down

0 comments on commit e1b9ce8

Please sign in to comment.