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

Commit 993ffb80 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Add all-S-files-under."

parents 90ed06ef e3b044a0
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -274,6 +274,19 @@ $(patsubst ./%,%, \
  )
endef

###########################################################
## Find all of the S files under the named directories.
## Meant to be used like:
##    SRC_FILES := $(call all-c-files-under,src tests)
###########################################################

define all-S-files-under
$(patsubst ./%,%, \
  $(shell cd $(LOCAL_PATH) ; \
          find -L $(1) -name "*.S" -and -not -name ".*") \
 )
endef

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