From 98610461de287550e3537c419dc3624bf7b472b6 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Tue, 21 Feb 2017 08:15:13 +0100 Subject: [PATCH] fix(build): POSIX compliant command usage Shells like dash do not support printing paths of more than one argument with the builtin `command -vp`. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 70472178..eb005358 100644 --- a/Makefile +++ b/Makefile @@ -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