X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=Makefile;h=e9a12f64fd97414d56da9909ba2f3b0369806420;hb=773a0061dccdd6763fbff37335038aa636960add;hp=19014a31670e0c82b0c6d5c3fc64cf946cdf4bb1;hpb=72db580cc640e36249e19d1d513856935848324d;p=khome.git diff --git a/Makefile b/Makefile index 19014a3..e9a12f6 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,11 +43,11 @@ 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: - mkdir -p ~/Archives/Audio + mkdir -p ~/arc/aud mkdir -p ~/var/lib/mpd/playlists mkdir -p ~/var/log/mpd mkdir -p ~/var/run/mpd @@ -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 @@ -78,10 +80,10 @@ pkgs_ubuntu_debfiles: list pkgs-ubuntu-debfiles.list # PIP # pkgs_pip_install: - pip3 install --user $(shell ./list pkgs-pip.list) + pip install --user $(shell ./list pkgs-pip.list) pkgs_pip_upgrade: - pip3 install --user --upgrade $(shell ./list pkgs-pip.list) + pip install --user --upgrade $(shell ./list pkgs-pip.list) # # Rust (cargo)