From 8892b3ef7eeb34dc584dbcae7ee093f0ae5dfc68 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 29 Dec 2016 14:01:38 -0800 Subject: [PATCH] util: Remove generated file from distribution tarball util_char_map.c is generated at compile time by the Python script x52_char_map_gen.py from the configuration x52_char_map.cfg. However, because it was listed in libx52util_la_SOURCES, it was getting added to the distribution. In addition, removing it from the distribution caused `make distcheck` to fail, since the generation script was called relative to the current directory, instead of relative to `$(srcdir)`. This commit also fixes that issue. --- util/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/Makefile.am b/util/Makefile.am index c173bad..83ba61d 100644 --- a/util/Makefile.am +++ b/util/Makefile.am @@ -4,7 +4,7 @@ lib_LTLIBRARIES = libx52util.la # libx52 utility library # This library provides extra utilities for ease of use -libx52util_la_SOURCES = util_char_map.c +nodist_libx52util_la_SOURCES = util_char_map.c libx52util_la_CFLAGS = -I $(top_srcdir)/libx52 libx52util_la_LDFLAGS = -version-info 1:0:0 libx52util_la_LIBADD = ../libx52/libx52.la @@ -21,4 +21,4 @@ EXTRA_DIST = x52_char_map.cfg \ # Autogenerated file that needs to be cleaned up CLEANFILES = util_char_map.c util_char_map.c: $(srcdir)/x52_char_map.cfg x52_char_map_gen.py - $(AM_V_GEN) ./x52_char_map_gen.py $(srcdir)/x52_char_map.cfg $@ + $(AM_V_GEN) $(srcdir)/x52_char_map_gen.py $(srcdir)/x52_char_map.cfg $@