[PATCH v2 0/2] Standardize the sorting of Makefile variables

Carlos O'Donell carlos@redhat.com
Tue May 9 18:51:50 GMT 2023


The project has started to re-flow and sort Makefile variables to make
it easier to manage the lists of inputs and tests.  While splitting the
lines is easy to do, the sorting is more onerous because of the desire
to sort like tests with like tests.  The following is an attempt to
standardize teh sorting following the consensus discussion on the list
which suggested using LC_COLLATE=C and sorting similar tests in
numerical order of their prefix.

The series re-flows and then sorts sysdeps/pthread/Makefile using the
new python helper script.

Carlos O'Donell (2):
  scripts: Add sort-makefile-lines.py to sort Makefile variables.
  nptl: Reformat Makefile.

 scripts/sort-makefile-lines.py                | 178 +++++++
 sysdeps/pthread/Makefile                      | 433 +++++++++++++-----
 .../{tst-mutex7robust.c => tst-robust11.c}    |   0
 3 files changed, 498 insertions(+), 113 deletions(-)
 create mode 100755 scripts/sort-makefile-lines.py
 rename sysdeps/pthread/{tst-mutex7robust.c => tst-robust11.c} (100%)

-- 
2.39.2



More information about the Libc-alpha mailing list