-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexe.gnu.inc.mk
56 lines (49 loc) · 2.27 KB
/
exe.gnu.inc.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# the g-prefixed commands are supposed to cater for Mac OSX (i.e. homebrew, etc)
AWK = $(call which,AWK,gawk awk)
BASENAME = $(call which,BASENAME,gbasename basename)
CAT = $(call which,CAT,gcat cat)
CHMOD = $(call which,CHMOD,gchmod chmod)
CHOWN = $(call which,CHOWN,gchown chown)
COMM = $(call which,COMM,gcomm comm)
CP = $(call which,CP,gcp cp) -Rp
CUT = $(call which,CUT,gcut cut)
DATE = $(call which,DATE,gdate date)
DIFF = $(call which,DIFF,gdiff diff)
FIND = $(call which,FIND,gfind find)
ECHO = $(call which,ECHO,gecho echo)
EXPR = $(call which,EXPR,gexpr expr)
GREP = $(call which,GREP,ggrep grep)
$(foreach VAR,AWK BASENAME CAT CHMOD CHOWN COMM CP CUT DATE DIFF FIND ECHO GREP,$(call make-lazy,$(VAR)))
# ------------------------------------------------------------------------------
HEAD = $(call which,HEAD,ghead head)
LN = $(call which,LN,gln ln) -f
LS = $(call which,LS,gls ls)
MD5SUM = $(call which,MD5SUM,gmd5sum md5sum)
MKDIR = $(call which,MKDIR,gmkdir mkdir) -p
MKTEMP = $(call which,MKTEMP,gmktemp mktemp) -t core-inc-mk.XXXXXXXXXX
MV = $(call which,MV,gmv mv) -f
PATCH = $(call which,PATCH,gpatch patch)
PARALLEL = $(call which,PARALLEL,gparallel parallel) --will-cite
$(foreach VAR,HEAD LN LS MD5SUM MKDIR MKTEMP MV PATCH PARALLEL,$(call make-lazy,$(VAR)))
#-------------------------------------------------------------------------------
READLINK = $(call which,READLINK,greadlink readlink)
REALPATH = $(call which,REALPATH,grealpath realpath)
RM = $(call which,RM,grm rm) -rf
SED = $(call which,SED,gsed sed)
SEQ = $(call which,SEQ,gseq seq)
SHA256SUM = $(call which,SHA256SUM,gsha256sum sha256sum)
SLEEP = $(call which,SLEEP,gsleep sleep)
SORT = $(call which,SORT,gsort sort)
$(foreach VAR,READLINK REALPATH RM SED SEQ SHA256SUM SLEEP SORT,$(call make-lazy,$(VAR)))
#-------------------------------------------------------------------------------
TAIL = $(call which,TAIL,gtail tail)
TAR = $(call which,TAR,gtar tar)
TEE = $(call which,TEE,gtee tee)
TEST = $(call which,TEST,gtest test)
TOUCH = $(call which,TOUCH,gtouch touch)
TR = $(call which,TR,gtr tr)
UNAME = $(call which,XARGS,guname uname)
WATCH = $(call which,WATCH,gwatch watch)
WC = $(call which,WC,gwc wc)
XARGS = $(call which,XARGS,gxargs xargs) -r
$(foreach VAR,TAIL TAR TEE TOUCH TR UNAME WATCH WC XARGS,$(call make-lazy,$(VAR)))