From 2e1740185aac8f22584b55938683fe03814a5195 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 29 Mar 2023 17:01:39 +0200 Subject: [PATCH] Use variable for MP-SPDZ path --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b89b063..a012c2c 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,16 @@ +MP_SPDZ_PATH := src/MP-SPDZ + all: patch deps - $(MAKE) -C src/MP_SPDZ all + $(MAKE) -C $(MP_SPDZ_PATH) all patch: - -git -C src/MP_SPDZ apply ../../config.patch + -git -C $(MP_SPDZ_PATH) apply ../../config.patch deps: patch sudo apt install automake build-essential clang cmake git libntl-dev \ libsodium-dev libssl-dev libtool m4 python3 texinfo yasm - $(MAKE) -C src/MP_SPDZ boost - $(MAKE) -C src/MP_SPDZ libote mpir + $(MAKE) -C $(MP_SPDZ_PATH) boost + $(MAKE) -C $(MP_SPDZ_PATH) libote mpir %: - $(MAKE) -C src/MP_SPDZ $@ + $(MAKE) -C $(MP_SPDZ_PATH) $@