From 7cd49077198ab826774e5ae57d3d3bfce3c5ece1 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Thu, 24 Jul 2025 10:42:04 +0800 Subject: [PATCH] Makefile: Copy locales _after_ build When creating the `target` directory, `cargo` also creates `target/CACHEDIR.TAG` which is important for backup tools to know to ignore the directory. This doesn't happen if something else creates the `target` directory (e.g. `locales` Makefile target). Swap the execution order to fix this. --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 9cc210004..e80d3aa7a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -320,10 +320,10 @@ else endif endif -build-coreutils: locales +build-coreutils: ${CARGO} build ${CARGOFLAGS} --features "${EXES} $(BUILD_SPEC_FEATURE)" ${PROFILE_CMD} --no-default-features -build: build-coreutils build-pkgs +build: build-coreutils build-pkgs locales $(foreach test,$(filter-out $(SKIP_UTILS),$(PROGS)),$(eval $(call TEST_BUSYBOX,$(test))))