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.
feature/alt_lookup_engine
nirenjan 2016-12-29 14:01:38 -08:00
parent 56faafca1e
commit 8892b3ef7e
1 changed files with 2 additions and 2 deletions

View File

@ -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 $@