diff options
author | Loïc Hoguin <[email protected]> | 2015-09-02 18:05:38 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-09-02 18:05:38 +0200 |
commit | a98a7b749421460387dd879bef16f5181cf5d6a2 (patch) | |
tree | 357c99cbb50d75362008ed4120708783cd5df48b /core/core.mk | |
parent | 1c2fa00f0639ec96f4a30be679bad4ac970bfe9f (diff) | |
download | erlang.mk-a98a7b749421460387dd879bef16f5181cf5d6a2.tar.gz erlang.mk-a98a7b749421460387dd879bef16f5181cf5d6a2.tar.bz2 erlang.mk-a98a7b749421460387dd879bef16f5181cf5d6a2.zip |
Replace core_find with native find
Native find is much faster. As for future Windows work,
this is no problem, as the retained solution involves
using find.exe from GnuWin.
Diffstat (limited to 'core/core.mk')
-rw-r--r-- | core/core.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/core.mk b/core/core.mk index fd88dec..97d126d 100644 --- a/core/core.mk +++ b/core/core.mk @@ -162,7 +162,7 @@ endif core_eq = $(and $(findstring $(1),$(2)),$(findstring $(2),$(1))) -core_find = $(foreach d,$(call core_ls,$1*),$(call core_find,$d/,$2) $(filter $(subst *,%,$2),$d)) +core_find = $(if $(wildcard $1),$(shell find $1 -type f -name $(subst *,\*,$2))) core_lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$(1))))))))))))))))))))))))))) |