From 5b99569c2c566935c7e18112346d8bfa549de294 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 31 Oct 2023 14:48:11 +0100 Subject: Makefile: align assignments --- Makefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 3ce4244..cb27efa 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,20 @@ include prelude.mk -src_dir := $(abspath .) -build_dir := $(src_dir)/build -cmake_dir := $(build_dir)/cmake +src_dir := $(abspath .) +build_dir := $(src_dir)/build +cmake_dir := $(build_dir)/cmake install_dir := $(build_dir)/install -test_report_dir := $(build_dir)/test_report -coverage_dir := $(build_dir)/coverage + +test_report_dir := $(build_dir)/test_report +coverage_dir := $(build_dir)/coverage flame_graphs_dir := $(build_dir)/flame_graphs -COMPILER ?= clang -CONFIGURATION ?= Debug -DEFAULT_HOST ?= 127.0.0.1 -DEFAULT_PORT ?= 5556 +COMPILER ?= clang +CONFIGURATION ?= Debug +DEFAULT_HOST ?= 127.0.0.1 +DEFAULT_PORT ?= 5556 INSTALL_PREFIX ?= $(install_dir) -COVERAGE ?= +COVERAGE ?= $(eval $(call noexpand,COMPILER)) $(eval $(call noexpand,CONFIGURATION)) @@ -98,9 +99,9 @@ test/docker: test/sanity # Force a rebuild for a coverage report, since it depends on GCC debug data. .PHONY: coverage -coverage: COMPILER := gcc +coverage: COMPILER := gcc coverage: CONFIGURATION := Debug -coverage: COVERAGE := 1 +coverage: COVERAGE := 1 coverage: clean build test @echo ----------------------------------------------------------------- @echo Generating code coverage report -- cgit v1.2.3