]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix non parallel VPATH builds
authorPádraig Brady <P@draigBrady.com>
Sat, 5 Jul 2025 11:49:02 +0000 (12:49 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 5 Jul 2025 11:49:02 +0000 (12:49 +0100)
* src/local.mk: Use the coarser BUILT_SOURCES mechanism
to generate speedlist.h, rather than a specific dependency
(which did seem to work for parallel builds).
Fixes https://bugs.gnu.org/78960

src/local.mk

index 537032578fc7efeb414f76ed9c83792876e5d4ac..fb763c4dbd1f652044d8bff49adc4caa93a61c80 100644 (file)
@@ -708,7 +708,7 @@ src/version.h: Makefile
 # -PD: MSVC (usable with a wrapper such as cccl from the SWIG project)
 getmacopts = -dM -xdumpmacros -qshowmacros -PD
 
-CLEANFILES += src/speedlist.h
+BUILT_SOURCES += src/speedlist.h
 src/speedlist.h: src/termios.c lib/config.h src/speedgen
        $(AM_V_GEN)rm -f $@
        $(AM_V_at)${MKDIR_P} src
@@ -718,8 +718,6 @@ src/speedlist.h: src/termios.c lib/config.h src/speedgen
        $(AM_V_at)chmod a-w $@t
        $(AM_V_at)mv $@t $@
 
-src/stty.c: src/speedlist.h
-
 # Generates a list of macro invocations like:
 #   SINGLE_BINARY_PROGRAM(program_name_str, main_name)
 # once for each program list on $(single_binary_progs). Note that