diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-01 14:36:44 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-01 14:36:44 +0100 |
commit | 1eff3ad37fdb9dcf9f8528fdacea0ebf0e79d545 (patch) | |
tree | 2c84e38245e1458fc6a6ef223cab7c8ce2f7a9ca /functions.mk | |
parent | 6f8aa145d43d0453d74e70d1d33cfa6e21fddf89 (diff) |
Add missing file
Diffstat (limited to 'functions.mk')
-rw-r--r-- | functions.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/functions.mk b/functions.mk new file mode 100644 index 000000000..51f645701 --- /dev/null +++ b/functions.mk @@ -0,0 +1,7 @@ +# 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)) + +# Given a file name, produce the corresponding dependency file +# (e.g. ‘foo/bar.o’ becomes ‘foo/.bar.o.dep’). +filename-to-dep = $(dir $1).$(notdir $1).dep |