X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=f8087cfbee2fb97a0263d14a5068f33330b8c30b;hb=7aec426b1833f155e12dc95f26f159c802ae55b3;hp=19014a31670e0c82b0c6d5c3fc64cf946cdf4bb1;hpb=72db580cc640e36249e19d1d513856935848324d;p=khome.git diff --git a/Makefile b/Makefile index 19014a3..f8087cf 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,11 @@ MAKEFLAGS := --no-builtin-rules DEPS := $(wildcard deps/*) ifeq ($(shell uname),Darwin) + GREP := ggrep SED := gsed DIFF := $(shell gls -t1 /usr/local/Cellar/diffutils/*/bin/diff | head -1) else + GREP := grep SED := sed DIFF := diff endif @@ -41,7 +43,7 @@ home: mpdconf compiled cp -Rp bin $(HOME)/ # Limit depth because directories are copied recursively: find home -maxdepth 1 -print0 \ - | grep -zv '^home$$' \ + | $(GREP) -zv '^home$$' \ | xargs -0 -I% cp -Rp % ~ mpdconf: