Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 539c7400 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

fix merge of all-named-files-under

Change-Id: Iad4c30abdcfca1e73a2a3d525dfcea57f92c5c40
parent 3dcbc592
Loading
Loading
Loading
Loading
+0 −40
Original line number Diff line number Diff line
@@ -221,46 +221,6 @@ define all-subdir-named-files
$(call all-named-files-under,$(1),.)
endef

###########################################################
## Find all of the directories under the named directories with
## the specified name.
## Meant to be used like:
##    INC_DIRS := $(call all-named-dirs-under,inc,.)
###########################################################

define all-named-dirs-under
$(call find-subdir-files,$(2) -type d -name "$(1)")
endef

###########################################################
## Find all the directories under the current directory that
## haves name that match $(1)
###########################################################

define all-subdir-named-dirs
$(call all-named-dirs-under,$(1),.)
endef

###########################################################
## Find all of the files under the named directories with
## the specified name.
## Meant to be used like:
##    SRC_FILES := $(call all-named-files-under,*.h,src tests)
###########################################################

define all-named-files-under
$(call find-files-in-subdirs,$(LOCAL_PATH),"$(1)",$(2))
endef

###########################################################
## Find all of the files under the current directory with
## the specified name.
###########################################################

define all-subdir-named-files
$(call all-named-files-under,$(1),.)
endef

###########################################################
## Find all of the java files under the named directories.
## Meant to be used like: