From 40ae3082645ed3790eb1d5d6f04fb2ca36c19187 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Apr 2013 07:35:45 +0200 Subject: Add support for schema version table --- evolution/template/Makefile.am | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'evolution/template/Makefile.am') diff --git a/evolution/template/Makefile.am b/evolution/template/Makefile.am index b5cd2d7..2d71bc3 100644 --- a/evolution/template/Makefile.am +++ b/evolution/template/Makefile.am @@ -34,16 +34,27 @@ test1-odb.hxx: test1.hxx # test2.hxx # driver_SOURCES += test2.hxx -nodist_driver_SOURCES += test2-odb.cxx -BUILT_SOURCES += test2-odb.hxx -CLEANFILES += test2-odb.hxx test2-odb.ixx test2-odb.cxx test2.sql \ -test2-002-pre.sql test2-002-post.sql test2-003-pre.sql test2-003-post.sql +nodist_driver_SOURCES = test2-odb.cxx +BUILT_SOURCES = test2-odb.hxx +CLEANFILES = test2-odb.hxx test2-odb.ixx test2-odb.cxx test2.sql test2-odb.hxx: test2.hxx $(ODB) $(AM_CPPFLAGS) $(ODBCPPFLAGS) $(CPPFLAGS) $(ODBFLAGS) __value__(odb_options2) --changelog model.xml $< -# Make sure test2.hxx is compiled before test1.hxx since they share the +# test3.hxx +# +driver_SOURCES += test3.hxx +nodist_driver_SOURCES += test3-odb.cxx +BUILT_SOURCES += test3-odb.hxx +CLEANFILES += test3-odb.hxx test3-odb.ixx test3-odb.cxx test3.sql \ +test3-002-pre.sql test3-002-post.sql test3-003-pre.sql test3-003-post.sql + +test3-odb.hxx: test3.hxx + $(ODB) $(AM_CPPFLAGS) $(ODBCPPFLAGS) $(CPPFLAGS) $(ODBFLAGS) __value__(odb_options3) --changelog model.xml $< + +# Make sure testN.hxx are compiled serially since they share the # changelog. Also add dependency on model.hxx # test2-odb.hxx: test1-odb.hxx -test1-odb.hxx test2-odb.hxx: model.hxx +test3-odb.hxx: test2-odb.hxx +test1-odb.hxx test2-odb.hxx test3-odb.hxx: model.hxx -- cgit v1.1