summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.common11
1 files changed, 6 insertions, 5 deletions
diff --git a/build/Makefile.common b/build/Makefile.common
index 65158ad..74948d5 100644
--- a/build/Makefile.common
+++ b/build/Makefile.common
@@ -9,10 +9,11 @@ COMPONENT := libhubbub
# Environment
TOP ?= $(CURDIR)
EXPORT := $(TOP)/dist
-RELEASEDIR := build/Release
-DEBUGDIR := build/Debug
-COVERAGEDIR := build/coverage
-DOCDIR := build/docs
+RELEASEDIR := build/Release-$(TARGET)
+DEBUGDIR := build/Debug-$(TARGET)
+COVERAGEDIR := build/coverage-$(TARGET)
+DOCDIR := build/docs-$(TARGET)
+TESTTYPE ?= debug
# List of items to delete on clean
ITEMS_CLEAN :=
@@ -53,7 +54,7 @@ debug: setup $(addprefix $(DEBUGDIR)/,$(OBJECTS))
@$(AR) $(ARFLAGS) $(COMPONENT)-debug.a \
$(addprefix $(DEBUGDIR)/,$(OBJECTS))
-test: debug $(TARGET_TESTS)
+test: $(TESTTYPE) $(TARGET_TESTS)
coverage: clean
@$(LCOV) --directory . --zerocounters