From 17fb1be01c66ed444a4b3911c75b32365787ac41 Mon Sep 17 00:00:00 2001 From: Joost Rijneveld Date: Mon, 18 Feb 2019 15:06:46 +0100 Subject: [PATCH] Ensure .a-file for scheme is up to date for tests --- test/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index 4b4d954e..f0d17f36 100644 --- a/test/Makefile +++ b/test/Makefile @@ -16,9 +16,12 @@ CFLAGS=-Wall -Wextra -Wpedantic -Werror -std=c99 -I$(COMMON_DIR) $(EXTRAFLAGS) all: $(DEST_DIR)/functest_$(SCHEME)_$(IMPLEMENTATION) -$(DEST_DIR)/functest_$(SCHEME)_$(IMPLEMENTATION): crypto_$(TYPE)/functest.c $(COMMON_FILES) +.PHONY: rebuild-scheme +rebuild-scheme: + cd $(SCHEME_DIR) && make + +$(DEST_DIR)/functest_$(SCHEME)_$(IMPLEMENTATION): rebuild-scheme crypto_$(TYPE)/functest.c $(COMMON_FILES) mkdir -p $(DEST_DIR) - cd $(SCHEME_DIR) && make clean && make $(CC) $(CFLAGS) -DPQCLEAN_NAMESPACE=PQCLEAN_$(SCHEME_UPPERCASE) -I$(SCHEME_DIR) crypto_$(TYPE)/functest.c $(COMMON_FILES) -o $@ -L$(SCHEME_DIR) -l$(SCHEME)_$(IMPLEMENTATION) clean: