aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-27 14:29:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-27 14:29:03 +0200
commitd3e68edc2b5e37ed3b585dde1f36066e5c3c02e6 (patch)
treea2cee652e775aece4cf2f7ed6e09d52eb8613fb1 /build/bootstrap.make
parent534c5958af6104aea60a9fcb0d823a5c3cfed1bc (diff)
Don't run fake db driver for SQLite
By default embedded schema is used.
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r--build/bootstrap.make8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index c6039eb..f2f8699 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -45,6 +45,14 @@ clean: $(out_base)/.clean
endif
+# Database schema creation.
+#
+ifeq ($(filter $(db_id),sqlite),)
+$(out_base)/.test: schema = \
+$(call message,sql $$1,\
+$(dcf_root)/db-driver $$1,$(out_base)/$(basename $(header)).sql)
+endif
+
# Dist setup.
#
ifneq ($(filter $(MAKECMDGOALS),dist),)