aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-03 14:12:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-03 14:12:48 +0200
commitb9161e6e332cb0279ef8616dbbce4c90b60bce15 (patch)
tree2462cb423cd9b62a7179def871420760bf3c6d98 /makefile
parent8d7db5926bc4764cc368570ea9b64e354c13f671 (diff)
New tests
Diffstat (limited to 'makefile')
-rw-r--r--makefile38
1 files changed, 15 insertions, 23 deletions
diff --git a/makefile b/makefile
index fc5718f..e3559a9 100644
--- a/makefile
+++ b/makefile
@@ -1,32 +1,24 @@
-# file : makefile
+# file : mysql/makefile
# author : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
-# license : GNU GPL v2; see accompanying LICENSE file
+# license : GNU GPL; see accompanying LICENSE file
include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make
-default := $(out_base)/
-test := $(out_base)/.test
-clean := $(out_base)/.clean
+tests := \
+common \
+tracer
-# Build.
-#
-$(default): \
-$(out_base)/tracer/ \
-$(out_base)/common/ \
-$(out_base)/libcommon/
+ifeq ($(db_id),mysql)
+tests += mysql
+endif
-# Test.
-#
-$(test): $(out_base)/tracer/.test $(out_base)/common/.test
+default := $(out_base)/
+test := $(out_base)/.test
+clean := $(out_base)/.clean
-# Clean.
-#
-$(clean): \
-$(out_base)/tracer/.clean \
-$(out_base)/common/.clean \
-$(out_base)/libcommon/.clean
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(tests)))
+$(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(tests)))
+$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(tests)))
-$(call import,$(src_base)/tracer/makefile)
-$(call import,$(src_base)/common/makefile)
-$(call import,$(src_base)/libcommon/makefile)
+$(foreach t,$(tests),$(call import,$(src_base)/$t/makefile))