diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 38 |
1 files changed, 15 insertions, 23 deletions
@@ -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)) |