Add a macro to ignore file patterns in calls to find
in the recipies
#42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead of explicit
-not -name "pattern1" -not -name "pattern2" -not -name "pattern3"
as the$(shell find ...)
calls currently stand, this change introduces a small macrofindn't
which will generate the-not -name "pattern"
part for every pattern in the list of patterns passed to it.A target-local variable
find-ignore
is$(eval ...)
-ed in the recipe of the necessary targets that is set to a space-separated list of file patterns to ignore so as to not pollute the makefile.Additional patterns to ignore can simply be added to the
find-ignore
variable, and without quotes.P. S: If you ever get around to seeing this, then Ms. Frazelle, I greatly admire your work. And this repository has been the main influence for my own dot-files repository. Using
make
to mange dotfiles using symlinks is such a great idea. Thank you for making this repo public for us to see/study/learn from. You're super awesome.