aboutsummaryrefslogtreecommitdiff
path: root/tracer/object/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tracer/object/makefile')
-rw-r--r--tracer/object/makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/tracer/object/makefile b/tracer/object/makefile
index ed7c562..1fd819b 100644
--- a/tracer/object/makefile
+++ b/tracer/object/makefile
@@ -11,6 +11,7 @@ cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o) $(odb_hdr:.hxx=-odb.o))
cxx_od := $(cxx_obj:.o=.o.d)
driver := $(out_base)/driver
+dist := $(out_base)/.dist
test := $(out_base)/.test
clean := $(out_base)/.clean
@@ -39,7 +40,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen): odb_options += --database tracer
+$(gen) $(dist): export odb_options += --database tracer
$(gen): cpp_options := -I$(out_base)
$(gen): $(odb_tracer.l.cpp-options) $(odb.l.cpp-options)
@@ -49,6 +50,13 @@ $(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
#
$(out_base)/: $(driver)
+# Dist
+#
+$(dist): data_dist := $(cxx_tun) $(odb_hdr) test.std
+$(dist):
+ $(call dist-data,$(data_dist))
+ $(call meta-automake,$(src_root)/tracer/template/Makefile.am)
+
# Test.
#
$(test): $(driver) $(src_base)/test.std
@@ -75,6 +83,9 @@ endif
# How to.
#
+$(call include,$(bld_root)/dist.make)
+$(call include,$(bld_root)/meta/automake.make)
+
$(call include,$(odb_rules))
$(call include,$(bld_root)/cxx/cxx-d.make)
$(call include,$(bld_root)/cxx/cxx-o.make)