summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-05-24 13:38:15 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-05-24 13:38:34 -0700
commit085f98bba131b708bf68e7162f19324629e3263a (patch)
treeb01b786146933fac51fe09e21622350e5c1b608d /lib
parent6fea170e2f1f936202657c0c4aaf842c672b72e5 (diff)
downloadgrep-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')
-rw-r--r--lib/Makefile.am8
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)