diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-24 13:38:15 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-24 13:38:34 -0700 |
commit | 085f98bba131b708bf68e7162f19324629e3263a (patch) | |
tree | b01b786146933fac51fe09e21622350e5c1b608d /lib/Makefile.am | |
parent | 6fea170e2f1f936202657c0c4aaf842c672b72e5 (diff) | |
download | grep-085f98bba131b708bf68e7162f19324629e3263a.tar.gz |
dist: don't distribute lib/colorize.c
'configure' creates this file, so it shouldn't be distributed; see:
http://bugs.gnu.org/17480
* configure.ac (COLORIZE_SOURCE): New macro.
Don't use AC_CONFIG_LINKS for lib/colorize.c.
* lib/Makefile.am (nodist_libgreputils_a_SOURCES): New macro.
(libgreputils_a_SOURCES): Remove colorize.c.
(CLEANFILES): Add colorize.c
(colorize.c): New rule.
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r-- | lib/Makefile.am | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index dc41fbf4..f9e54441 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -29,10 +29,12 @@ include gnulib.mk AM_CFLAGS += $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS) -libgreputils_a_SOURCES += \ - colorize.c colorize.h - +nodist_libgreputils_a_SOURCES = colorize.c +libgreputils_a_SOURCES += colorize.h EXTRA_DIST += colorize-posix.c colorize-w32.c +CLEANFILES += colorize.c +colorize.c: + $(AM_V_GEN)echo '#include <$(COLORIZE_SOURCE)>' >$@ libgreputils_a_LIBADD += $(LIBOBJS) $(ALLOCA) libgreputils_a_DEPENDENCIES += $(LIBOBJS) $(ALLOCA) |