From dee21068a876821e23a5cd43f8aeb2da348fa0fe Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 26 Jul 2022 18:58:14 -0700 Subject: [PATCH] add misc. forgotten Makefile stuff --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 64bacb5..e3bb793 100644 --- a/Makefile +++ b/Makefile @@ -20,21 +20,24 @@ common_cmake_flags += -DCMAKE_BUILD_TYPE=RelWithDebInfo reset_make_env = "MAKEFLAGS=" "MFLAGS=" "MAKELEVEL=" "MAKE_TERMERR=" "MAKE_TERMOUT=" -.installed-dependencies: install-deps.sh +.installed-dependencies: install-deps.sh Makefile ./install-deps.sh $(enabled_arches) 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 + [ "$(host_arch)" != "ppc64le" ] || cp build-ppc64le/compile_commands.json . 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 + [ "$(host_arch)" != "aarch64" ] || cp build-aarch64/compile_commands.json . 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 + [ "$(host_arch)" != "x86_64" ] || cp build-x86_64/compile_commands.json . configure: $(foreach arch,$(enabled_arches),build-$(arch)/Makefile) @@ -50,5 +53,5 @@ build-x86_64/benchmarks: build-x86_64/Makefile __force-run $(MAKE) -C build-x86_64 benchmarks clean: - rm -fr build-ppc64le build-aarch64 build-x86_64 .installed-dependencies + rm -fr build-ppc64le build-aarch64 build-x86_64 .installed-dependencies compile_commands.json -- 2.30.2