1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00

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
#
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