summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2010-09-16 08:25:03 -0700
committerAaron Plattner <aplattner@nvidia.com>2010-09-16 09:52:50 -0700
commitf9b1ac1bbe60a74d9120dd02ca1eb6a8ab790b3e (patch)
treeccb3f6f5b9c5e3ed01c3fac1ed2e811f99d02993
parentb078007cf9c9af36204f6c7cb26e03871a2017b4 (diff)
[dist] Build mc for dist
mc is used to compile the .m files into .c files at dist time. If dist is run from a clean build directory, mc is not built and the dist fails in xts5/Xproto when it tries to run it. Add a dependency on mc for dist-hook to make sure that mc is built before the tests. Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--xts5/src/bin/mc/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/xts5/src/bin/mc/Makefile.am b/xts5/src/bin/mc/Makefile.am
index 068cc660..14f599fe 100644
--- a/xts5/src/bin/mc/Makefile.am
+++ b/xts5/src/bin/mc/Makefile.am
@@ -12,3 +12,7 @@ AM_CFLAGS = -I$(top_srcdir)/include \
noinst_PROGRAMS = mc
mc_SOURCES = main.c sections.c files.c shortname.c error.c gccomps.c set.c \
expand.c code.c make.c ma.c cond.c mas.c
+
+# Build mc for the 'dist' rule, because it's used to generate .c files that are
+# distributed.
+dist-hook: mc