Skip to content

Commit e1b9ce8

Browse files
autotools: Use same conventions for all pregenerated files
1 parent 08f4b16 commit e1b9ce8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile.am

+5-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ precompute_ecmult_gen_LDADD = $(COMMON_LIB)
203203
# otherwise make's decision whether to rebuild them (even in the first
204204
# build by a normal user) depends on mtimes, and thus is very fragile.
205205
# This means that rebuilds of the prebuilt files always need to be
206-
# forced by deleting them, e.g., by invoking `make clean-precomp`.
206+
# forced by deleting them.
207207
src/precomputed_ecmult.c:
208208
$(MAKE) $(AM_MAKEFLAGS) precompute_ecmult$(EXEEXT)
209209
./precompute_ecmult$(EXEEXT)
@@ -224,14 +224,17 @@ clean-precomp:
224224
rm -f $(PRECOMP)
225225

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

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

232233
testvectors: $(TESTVECTORS)
233234

234-
maintainer-clean-testvectors: clean-testvectors
235+
BUILT_SOURCES += $(TESTVECTORS)
236+
237+
maintainer-clean-local: clean-testvectors
235238

236239
clean-testvectors:
237240
rm -f $(TESTVECTORS)

0 commit comments

Comments
 (0)