reset_make_env = "MAKEFLAGS=" "MFLAGS=" "MAKELEVEL=" "MAKE_TERMERR=" "MAKE_TERMOUT="
-build-ppc64le/Makefile: toolchain-powerpc64le-linux-gnu.cmake CMakeLists.txt
+.installed-dependencies: install-deps.sh
./install-deps.sh
+ touch .installed-dependencies
+
+build-ppc64le/Makefile: toolchain-powerpc64le-linux-gnu.cmake CMakeLists.txt .installed-dependencies
rm -fr build-ppc64le
env $(reset_make_env) cmake $(common_cmake_flags) -B build-ppc64le -DCMAKE_TOOLCHAIN_FILE=toolchain-powerpc64le-linux-gnu.cmake
-build-aarch64/Makefile: toolchain-aarch64-linux-gnu.cmake CMakeLists.txt
- ./install-deps.sh
+build-aarch64/Makefile: toolchain-aarch64-linux-gnu.cmake CMakeLists.txt .installed-dependencies
rm -fr build-aarch64
env $(reset_make_env) cmake $(common_cmake_flags) -B build-aarch64 -DCMAKE_TOOLCHAIN_FILE=toolchain-aarch64-linux-gnu.cmake
-build-x86_64/Makefile: toolchain-x86_64-linux-gnu.cmake CMakeLists.txt
- ./install-deps.sh
+build-x86_64/Makefile: toolchain-x86_64-linux-gnu.cmake CMakeLists.txt .installed-dependencies
rm -fr build-x86_64
env $(reset_make_env) cmake $(common_cmake_flags) -B build-x86_64 -DCMAKE_TOOLCHAIN_FILE=toolchain-x86_64-linux-gnu.cmake
$(MAKE) -C build-x86_64 benchmarks
clean:
- rm -fr build-ppc64le build-aarch64 build-x86_64
+ rm -fr build-ppc64le build-aarch64 build-x86_64 .installed-dependencies