aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'common/changelog/makefile')
-rw-r--r--common/changelog/makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/common/changelog/makefile b/common/changelog/makefile
index 8d5e96d..bd0f243 100644
--- a/common/changelog/makefile
+++ b/common/changelog/makefile
@@ -15,14 +15,11 @@ add-index.hxx \
drop-index.hxx \
add-foreign-key.hxx \
drop-foreign-key.hxx
+genf := $(call odb-gen,$(odb_hdr))
+gen := $(addprefix $(out_base)/,$(genf))
common.l.cpp-options := $(out_root)/libcommon/common/common.l.cpp-options
-default := $(out_base)/
-dist := $(out_base)/.dist
-test := $(out_base)/.test
-clean := $(out_base)/.clean
-
# Import.
#
$(call import,\
@@ -33,9 +30,6 @@ $(call import,\
#
$(default):
-genf := $(foreach f,$(odb_hdr:.hxx=-odb),$(addprefix $f,.hxx .ixx .cxx))
-gen := $(addprefix $(out_base)/,$(genf))
-
$(gen): $(odb) FORCE # Force regeneration even if up to date.
$(gen): odb := $(odb)
$(gen): export odb_options += --database $(db_id) --generate-schema-only \
@@ -81,7 +75,7 @@ $(test): | $(out_base)/.
# Clean.
#
$(clean): changelogs := $(addprefix $(out_base)/,$(odb_hdr:.hxx=.xml))
-$(clean): $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean))
+$(clean): $(addsuffix .hxx.clean,$(filter %.cxx,$(gen)))
$(call message,,rm -f $(changelogs))
# Generated .gitignore.