From f654efe02445c92661a20feffa9b2a9f40c996f5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 21 Mar 2011 16:06:39 +0200 Subject: Fix issues with build outside source directory --- template/makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'template') diff --git a/template/makefile b/template/makefile index 44f393a..4f1542c 100644 --- a/template/makefile +++ b/template/makefile @@ -38,7 +38,7 @@ endif # Build. # $(driver): $(cxx_obj) $(odb_db.l) $(odb.l) -$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) +$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) $(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options) ifeq ($(db_id),mysql) @@ -51,7 +51,7 @@ gen := $(addprefix $(out_base)/,$(genf)) $(gen): $(odb) $(gen): odb := $(odb) $(gen) $(dist): export odb_options += --database $(db_id) --generate-schema -$(gen): cpp_options := -I$(out_base) +$(gen): cpp_options := -I$(src_base) $(gen): $(odb.l.cpp-options) $(call include-dep,$(cxx_od),$(cxx_obj),$(gen)) @@ -79,7 +79,7 @@ $(dist): # Test. # -$(test): schema := $(src_base)/$(basename $(odb_hdr)).sql +$(test): schema := $(out_base)/$(basename $(odb_hdr)).sql $(test): $(driver) $(call message,sql $$1,$(dcf_root)/db-driver $$1,$(schema)) $(call message,test $<,$< --options-file $(dcf_root)/db.options) -- cgit v1.1