aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-14 11:58:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-14 11:58:32 +0200
commit48eeff4e9bd12a52dcb4b552b2784836a2390321 (patch)
tree17b9720fc810b5b394929b7a2c5dad9a4d863e0d /build
parenta519bac4e04e679e3063f71e31e1b43db1a703cc (diff)
Store file suffixes in target-specific variables
Diffstat (limited to 'build')
-rw-r--r--build/hxx/hxx-cxx.make4
-rw-r--r--build/import/cli/cli-cxx.make4
-rw-r--r--build/import/odb/hxx-cxx.make4
3 files changed, 12 insertions, 0 deletions
diff --git a/build/hxx/hxx-cxx.make b/build/hxx/hxx-cxx.make
index 6bd9469..32ab610 100644
--- a/build/hxx/hxx-cxx.make
+++ b/build/hxx/hxx-cxx.make
@@ -49,6 +49,10 @@ endif
.PHONY: $(out_base)/%-odb.cxx.hxx.clean
+$(out_base)/%-odb.cxx.hxx.clean: cxx_s_suffix := $(cxx_s_suffix)
+$(out_base)/%-odb.cxx.hxx.clean: cxx_h_suffix := $(cxx_h_suffix)
+$(out_base)/%-odb.cxx.hxx.clean: cxx_i_suffix := $(cxx_i_suffix)
+
$(out_base)/%-odb.cxx.hxx.clean:
$(call message,rm $$1,rm -f $$1,$(@:.cxx.hxx.clean=.$(cxx_s_suffix)))
$(call message,rm $$1,rm -f $$1,$(@:.cxx.hxx.clean=.$(cxx_h_suffix)))
diff --git a/build/import/cli/cli-cxx.make b/build/import/cli/cli-cxx.make
index cb60d37..56dc4b8 100644
--- a/build/import/cli/cli-cxx.make
+++ b/build/import/cli/cli-cxx.make
@@ -39,6 +39,10 @@ endif
.PHONY: $(out_base)/%.cxx.cli.clean
+$(out_base)/%.cxx.cli.clean: cxx_s_suffix := $(cxx_s_suffix)
+$(out_base)/%.cxx.cli.clean: cxx_h_suffix := $(cxx_h_suffix)
+$(out_base)/%.cxx.cli.clean: cxx_i_suffix := $(cxx_i_suffix)
+
$(out_base)/%.cxx.cli.clean:
$(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_s_suffix)))
$(call message,rm $$1,rm -f $$1,$(@:.cxx.cli.clean=.$(cxx_h_suffix)))
diff --git a/build/import/odb/hxx-cxx.make b/build/import/odb/hxx-cxx.make
index 7804183..c9f3325 100644
--- a/build/import/odb/hxx-cxx.make
+++ b/build/import/odb/hxx-cxx.make
@@ -51,6 +51,10 @@ endif
.PHONY: $(out_base)/%-odb.cxx.hxx.clean
+$(out_base)/%-odb.cxx.hxx.clean: cxx_s_suffix := $(cxx_s_suffix)
+$(out_base)/%-odb.cxx.hxx.clean: cxx_h_suffix := $(cxx_h_suffix)
+$(out_base)/%-odb.cxx.hxx.clean: cxx_i_suffix := $(cxx_i_suffix)
+
$(out_base)/%-odb.cxx.hxx.clean:
$(call message,rm $$1,rm -f $$1,$(@:.cxx.hxx.clean=.$(cxx_s_suffix)))
$(call message,rm $$1,rm -f $$1,$(@:.cxx.hxx.clean=.$(cxx_h_suffix)))