home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
409f2c7
)
Use GNU grap on Mac
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 28 Oct 2020 11:06:00 +0000
(07:06 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 28 Oct 2020 11:06:21 +0000
(07:06 -0400)
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
index
19014a3
..
f8087cf
100644
(file)
--- 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:
This page took
0.024468 seconds
and
4
git commands to generate.