diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-01-05 23:00:41 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-01-05 23:02:03 +0000 |
commit | 2d9ed9cbc4bd611d027b07f40bcf2dad68632857 (patch) | |
tree | 5bc1180946efd7ade5a44bf03adfe5e81df29239 /test/Makefile | |
parent | 047b37d5f8c3810f8942f5744bb92640fbd4879f (diff) | |
download | netsurf-2d9ed9cbc4bd611d027b07f40bcf2dad68632857.tar.gz netsurf-2d9ed9cbc4bd611d027b07f40bcf2dad68632857.tar.bz2 |
rename default build output directory target
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile index a3f84f35a..7a763e943 100644 --- a/test/Makefile +++ b/test/Makefile @@ -58,15 +58,16 @@ utils_SRCS := utils/utils.c utils/messages.c utils/hashtable.c \ time_SRCS := utils/time.c test/log.c test/time.c # Coverage builds need additional flags +COV_ROOT := build/$(HOST)-coverage ifeq ($(MAKECMDGOALS),coverage) COV_CFLAGS ?= -fprofile-arcs -ftest-coverage -O0 COV_CXXFLAGS ?= -fprofile-arcs -ftest-coverage -O0 COV_LDFLAGS ?= -lgcov -fprofile-arcs - TESTROOT := build-$(HOST)-coverage + TESTROOT := $(COV_ROOT) else COV_CFLAGS ?= -O0 COV_CXXFLAGS ?= -O0 - TESTROOT := build-$(HOST)-test + TESTROOT := build/$(HOST)-test endif @@ -172,6 +173,6 @@ $(TESTROOT)/created: test-clean: $(VQ)echo " CLEAN: $(TESTROOT)" - $(VQ)echo " CLEAN: build-$(HOST)-coverage" - $(Q)$(RM) -r $(TESTROOT) build-$(HOST)-coverage + $(VQ)echo " CLEAN: $(COV_ROOT)" + $(Q)$(RM) -r $(TESTROOT) $(COV_ROOT) CLEANS += test-clean |