]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: move definition of 'all_programs' in cfg.mk
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 30 Aug 2012 16:19:52 +0000 (18:19 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 31 Aug 2012 10:22:09 +0000 (12:22 +0200)
* Makefile.am: Move definition of target 'all_programs' from here ...
* cfg.mk: ... to here, which is the only file where it is used.

Makefile.am
cfg.mk

index d14bf880e135658f3af652c63b378344578dfbbf..673c964b3cf947b90c5cea99c8332d30604ab7f8 100644 (file)
@@ -170,9 +170,5 @@ check-git-hook-script-sync:
        rm -rf $$t;                                                     \
        test $$fail = 0
 
-.PHONY: all_programs
-all_programs:
-       @cd ./src && $(MAKE) -s $@
-
 include $(top_srcdir)/doc/local.mk
 include $(top_srcdir)/man/local.mk
diff --git a/cfg.mk b/cfg.mk
index c945ea6d758a1f5476f5d463994ecee13ec35ecb..b80a61f636fdf33dc780559189816b3ec1434095 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -166,6 +166,12 @@ sc_long_lines:
          sed -e "s|^|$$file:|" -e '$(FILTER_LONG_LINES)';              \
        done | grep . && { msg="$$halt" $(_sc_say_and_exit) } || :
 
+# TODO: remove once the build system in 'src/' is merged with the
+# top-level one.
+.PHONY: all_programs
+all_programs:
+       @cd ./src && $(MAKE) -s $@
+
 # Option descriptions should not start with a capital letter.
 # One could grep source directly as follows:
 # grep -E " {2,6}-.*[^.]  [A-Z][a-z]" $$($(VC_LIST_EXCEPT) | grep '\.c$$')