]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't assume that "make -C" works; Solaris "make" doesn't have -C.
authorJim Meyering <jim@meyering.net>
Thu, 13 May 2004 07:03:00 +0000 (07:03 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 13 May 2004 07:03:00 +0000 (07:03 +0000)
(all_programs.list): New rule, copied from
man/Makefile.am and tests/Makefile.am, except that we use the
system tr rather than ./tr and we don't use tr -s.

src/Makefile.am

index 463422398bdacc3a0bffa059eeb86629a8a8ad46..c03c4ca0c1e967ea32c37691afc646dbdc6462b6 100644 (file)
@@ -209,15 +209,18 @@ fs.h: stat.c extract-magic
 
 MAINTAINERCLEANFILES = $(BUILT_SOURCES)
 
+# Sort in traditional ASCII order, regardless of the current locale;
+# otherwise we may get into trouble with distinct strings that the
+# current locale considers to be equal.
+ASSORT = LC_ALL=C sort
+
 all_programs = \
     $(bin_PROGRAMS) \
     $(bin_SCRIPTS) \
   $(EXTRA_PROGRAMS)
 
-# Sort in traditional ASCII order, regardless of the current locale;
-# otherwise we may get into trouble with distinct strings that the
-# current locale considers to be equal.
-ASSORT = LC_ALL=C sort
+all_programs.list:
+       @echo $(all_programs) | tr ' ' '\n' | $(ASSORT)
 
 pm = progs-makefile
 pr = progs-readme