aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/bootstrap.make7
1 files changed, 3 insertions, 4 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index aba7532..d4e5049 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -47,11 +47,10 @@ 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-body = \
+$(call message,sql $$1,$(dcf_root)/db-driver $$1,$1)$(literal_newline)$(literal_tab)
$(out_base)/.test: schema = \
-$(foreach s,$1,$(call schema-extra,$s))$(call \
-message,sql $$1,$(dcf_root)/db-driver $$1,$(out_base)/test.sql)
+$(foreach s,$(if $1,$1,$(out_base)/test.sql),$(call schema-body,$s))@:
endif
# Dist setup.