mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
Add 'mk/' from commit '1eff3ad37f
'
git-subtree-dir: mk git-subtree-mainline:6ef32bddc1
git-subtree-split:1eff3ad37f
This commit is contained in:
commit
74ca70da3a
12 changed files with 492 additions and 0 deletions
7
mk/functions.mk
Normal file
7
mk/functions.mk
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue