X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=bbd460e2a728f22a994eb1c3348303b1f25207ae;hb=a4645889956a28f9ae604a64b3f3af17f63c875a;hp=19014a31670e0c82b0c6d5c3fc64cf946cdf4bb1;hpb=72db580cc640e36249e19d1d513856935848324d;p=khome.git diff --git a/Makefile b/Makefile index 19014a3..bbd460e 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: @@ -63,7 +65,7 @@ font_cache: # Golang # pkgs_golang: list pkgs-golang.list - go get $(shell ./list pkgs-golang.list) + go get -u $(shell ./list pkgs-golang.list) # # Ubuntu