diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-21 16:55:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-21 16:55:21 +0200 |
commit | 9106867c0c70bae196c1b38e9594f0340dcc9698 (patch) | |
tree | 3f03d6b1b792c06e8a5674cc715190ca3e91baa9 /build | |
parent | f654efe02445c92661a20feffa9b2a9f40c996f5 (diff) |
Factor out database macro setup
Diffstat (limited to 'build')
-rw-r--r-- | build/configuration.make | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build/configuration.make b/build/configuration.make index 2cf8c9a..768beb2 100644 --- a/build/configuration.make +++ b/build/configuration.make @@ -13,7 +13,16 @@ $(call -include,$(dcf_root)/configuration-dynamic.make) ifdef db_id -$(out_root)/%: db_id := $(db_id) +ifeq ($(db_id),mysql) +db_macro := DATABASE_MYSQL +endif + +ifeq ($(db_id),sqlite) +db_macro := DATABASE_SQLITE +endif + +$(out_root)/%: db_id := $(db_id) +$(out_root)/%: db_macro := $(db_macro) else |