aboutsummaryrefslogtreecommitdiff
path: root/libcommon
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-12 17:25:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-12 17:25:13 +0200
commitc85f0af82c3abf2e7d2dfa76351a59d9884395c0 (patch)
tree92a49dadc3dadad9eaf3e8f01f170c839a3a12a4 /libcommon
parent2026ac6d0c0eb59248583632b4fa9e78c0bdbdfc (diff)
Distribute generated code from out_base
Diffstat (limited to 'libcommon')
-rw-r--r--libcommon/common/makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/libcommon/common/makefile b/libcommon/common/makefile
index 7349690..dc1a324 100644
--- a/libcommon/common/makefile
+++ b/libcommon/common/makefile
@@ -79,15 +79,20 @@ $(out_base)/: $(common.l)
# Dist.
#
-$(dist): export sources := $(cxx_tun) $(cli_tun:.cli=.cxx)
-$(dist): export headers = $(subst $(src_base)/,,$(shell find $(src_base) \
+$(dist): sources_dist := $(cxx_tun)
+$(dist): export sources := $(sources_dist) $(cli_tun:.cli=.cxx)
+$(dist): headers_dist = $(subst $(src_base)/,,$(shell find $(src_base) \
-name '*.hxx' -o -name '*.ixx' -o -name '*.txx'))
-$(dist): data_dist := $(cli_tun)
+$(dist): gen_headers := $(cli_tun:.cli=.hxx) $(cli_tun:.cli=.ixx)
+$(dist): export headers = $(headers_dist) $(gen_headers)
+$(dist): gen_dist := $(gen)
+$(dist): data_dist := $(cli_tun) config.h.in
$(dist): export extra_dist := $(data_dist) $(call vc9projs,libcommon) \
$(call vc10projs,libcommon)
$(dist): $(gen)
- $(call dist-data,$(sources) $(headers) $(data_dist) config.h.in)
+ $(call dist-data,$(sources_dist) $(headers_dist) $(data_dist))
+ $(call dist-data,$(gen_dist))
$(call meta-automake)
$(call meta-vc9projs,libcommon)
$(call meta-vc10projs,libcommon)