aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-10 14:40:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-10 14:40:13 +0200
commit66732b210c512b8dfe7e97d3ab6522cf3be72a72 (patch)
tree293e30a2722ae601566da61247b180f8ed7fb633 /build/bootstrap.make
parent5e98aad4b067ece803b75cae7f538565da8661c8 (diff)
Add support for multiple database schema files
Files are executed in alphabetic order.
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r--build/bootstrap.make5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 531d4f4..aba7532 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -47,8 +47,11 @@ endif
# Database schema creation.
#
ifeq ($(filter $(db_id),sqlite),)
+$(out_base)/.test: schema-extra = \
+$(call message,sql $$1,$(dcf_root)/db-driver $$1,$(src_base)/$1)$(literal_newline)$(literal_tab)
$(out_base)/.test: schema = \
-$(call message,sql $$1,$(dcf_root)/db-driver $$1,$(out_base)/test.sql)
+$(foreach s,$1,$(call schema-extra,$s))$(call \
+message,sql $$1,$(dcf_root)/db-driver $$1,$(out_base)/test.sql)
endif
# Dist setup.