On Wed, 2021-12-15 at 08:49 -0800, David Boyce wrote: > $(if $(filter-out 1,$(words "$(PATH_TO_CHECK)")),$(error spaces found))
Heh, cute! Good idea. You could also just use: $(if $(filter-out 1,$(words x$(PATH_TO_CHECK))),$(error spaces found)) No need to use quotes and you don't need anything at the end; you just don't want it to be _actuallY_ empty.