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.
This commit is contained in:
Nicolas Boichat
2025-07-24 10:42:04 +08:00
parent 8bbce0d3de
commit 7cd4907719
+2 -2
View File
@@ -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))))