summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-07-18 14:21:19 +0100
committerPádraig Brady <P@draigBrady.com>2014-07-18 18:06:07 +0100
commit09937e9d070619ae696f3f93055e7a4921a51163 (patch)
tree58326de65cce029a5389a0af8659f6cb415587bc
parentc0a29dd5f64761e0459f29d7357854590d275dee (diff)
downloadcoreutils-09937e9d070619ae696f3f93055e7a4921a51163.tar.gz
build: don't distribute generated coreutils.h
This issue was identified by the manifest comparisons done by `make distcheck` * src/local.mk (noinst_HEADERS): Remove coreutils.h from this always distributed list. (nodist_src_coreutils_SOURCES): Add coreutils.h as its contents are determined at configure time, so pointless to distribute. (src_coreutils_SOURCES): Define explicitly so that the corresponding nodist_ variable is honored. (DISTCLEANFILES): Add coreutils.h to this rather than CLEANFILES, as its contents are determined at configure time.
-rw-r--r--src/local.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/local.mk b/src/local.mk
index e35d28688..c0d04d680 100644
--- a/src/local.mk
+++ b/src/local.mk
@@ -42,7 +42,6 @@ noinst_PROGRAMS = \
noinst_HEADERS = \
src/chown-core.h \
src/copy.h \
- src/coreutils.h \
src/cp-hash.h \
src/dircolors.h \
src/fiemap.h \
@@ -348,6 +347,9 @@ src_ginstall_SOURCES = src/install.c src/prog-fprintf.c $(copy_sources) \
# This is for the '[' program. Automake transliterates '[' and '/' to '_'.
src___SOURCES = src/lbracket.c
+nodist_src_coreutils_SOURCES = src/coreutils.h
+src_coreutils_SOURCES = src/coreutils.c
+
src_cp_SOURCES = src/cp.c $(copy_sources) $(selinux_sources)
src_dir_SOURCES = src/ls.c src/ls-dir.c
src_vdir_SOURCES = src/ls.c src/ls-vdir.c
@@ -565,7 +567,7 @@ src/version.h: Makefile
# once for each program list on $(single_binary_progs). Note that
# for [ the macro invocation is:
# SINGLE_BINARY_PROGRAM("[", _)
-CLEANFILES += src/coreutils.h
+DISTCLEANFILES += src/coreutils.h
src/coreutils.h: Makefile
$(AM_V_GEN)rm -f $@
$(AM_V_at)for prog in $(single_binary_progs); do \