]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: provide convenience target 'all_programs' also at top-level
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 29 Aug 2012 14:57:41 +0000 (16:57 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 30 Aug 2012 13:22:00 +0000 (15:22 +0200)
This will be mostly useful in future changes.

* Makefile.am (all_programs): New, simply work by delegating to
the same-named target in the 'src/' subdirectory.
* cfg.mk (sc_option_desc_uppercase): Take advantage of it.
(sc_man_file_correlation): Likewise.

Makefile.am
cfg.mk

index 0446e4344eb211031dd5e128ee5f16ed59ab8488..f80c4a628996976008492eb7379086b48ea7b9c9 100644 (file)
@@ -170,4 +170,8 @@ 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
diff --git a/cfg.mk b/cfg.mk
index 9244225e1e452a307127c47a658707fdc1f629e6..e6e0828c7a2b9c36f092f6a0f445eee1dfdbf900 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -171,14 +171,12 @@ sc_long_lines:
 # grep -E " {2,6}-.*[^.]  [A-Z][a-z]" $$($(VC_LIST_EXCEPT) | grep '\.c$$')
 # but that would miss descriptions not on the same line as the -option.
 ALL_RECURSIVE_TARGETS += sc_option_desc_uppercase
-sc_option_desc_uppercase:
-       @$(MAKE) -s -C src all_programs
+sc_option_desc_uppercase: all_programs
        @$(MAKE) -s -C man $@
 
 # Ensure all man/*.[1x] files are present
 ALL_RECURSIVE_TARGETS += sc_man_file_correlation
-sc_man_file_correlation:
-       @$(MAKE) -s -C src all_programs
+sc_man_file_correlation: all_programs
        @$(MAKE) -s -C man $@
 
 # Ensure that the end of each release's section is marked by two empty lines.