Skip to content

Commit

Permalink
Add a function for doing recursive wildcard searches
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Dec 18, 2013
1 parent 088552b commit 99ed25a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mk/lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ ifeq ($(BUILD_DEBUG), 1)
endif


# Utility function for recursively finding files, e.g.
# ‘$(call rwildcard, path/to/dir, *.c *.h)’.
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))


include mk/clean.mk
include mk/dist.mk
include mk/install.mk
Expand Down

0 comments on commit 99ed25a

Please sign in to comment.