fix(build): POSIX compliant command usage

Shells like dash do not support printing paths of more
than one argument with the builtin `command -vp`.
This commit is contained in:
Eivind Uggedal 2017-02-21 08:15:13 +01:00 committed by Michael Carlberg
parent 44f12c6065
commit 98610461de

View File

@ -2,7 +2,7 @@
# Polybar development tasks # Polybar development tasks
# #
BUILDDIR ?= build BUILDDIR ?= build
GENERATOR ?= $(shell command -vp ninja make | xargs basename | sed "s/ninja/Ninja/;s/make/Unix Makefiles/") GENERATOR ?= $(shell for c in ninja make; do command -vp $$c; done | xargs basename | sed "s/ninja/Ninja/;s/make/Unix Makefiles/")
all: configure build link all: configure build link