diff --git a/rslib/Makefile b/rslib/Makefile index 4e322e392..4c09cada8 100644 --- a/rslib/Makefile +++ b/rslib/Makefile @@ -1,5 +1,6 @@ SHELL := /bin/bash ECHOCMD := /bin/echo -e +FIND_EXEC := $(if $(wildcard /bin/find),,/usr)/bin/find .SHELLFLAGS := -eu -o pipefail -c .DELETE_ON_ERROR: @@ -25,7 +26,7 @@ develop: .build/vernum ftl/repo ftl/repo: (cd ftl && ./scripts/fetch-latest-translations) -ALL_SOURCE := $(shell find src -type f) $(wildcard ftl/*.ftl) +ALL_SOURCE := $(shell ${FIND_EXEC} src -type f) $(wildcard ftl/*.ftl) # nightly currently required for ignoring files in rustfmt.toml RUST_TOOLCHAIN := $(shell cat rust-toolchain)