diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-18 15:01:14 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-12-18 15:01:14 +0100 |
commit | 99ed25accfd968003d3b0d294720828a1348ce47 (patch) | |
tree | 3cad809c71c53e7e0f29e62ced10cc4cb8decfb2 | |
parent | 088552b319d8f5896e6cfd6a8e449b4239696ea2 (diff) |
Add a function for doing recursive wildcard searches
Source: http://blog.jgc.org/2011/07/gnu-make-recursive-wildcard-function.html
-rw-r--r-- | mk/lib.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |