| # ----------------------------------------------------------------------- |
| # o Construct a find command able to gather python files with filtering. |
| # o Used by library makefiles flake8.mk and pylint.mk for iteration. |
| # ----------------------------------------------------------------------- |
| ## ----------------------------------------------------------------------- |
| ## Intent: Construct a string for invoking find \( excl-pattern \) -prune |
| # ----------------------------------------------------------------------- |
| $(foreach dir,$($(1)),-o -name $(dir)) \ |
| ## ----------------------------------------------------------------------- |
| ## Intent: Construct a find command to gather a list of python files |
| ## ----------------------------------------------------------------------- |
| # $(activate) & $(call gen-python-find-cmd) | $(args-n1) pylint |
| ## ----------------------------------------------------------------------- |
| \( $(call gen-yaml-find-excl,onf-excl-dirs) \) -prune \ |
| -o \( -iname '*.yaml' -o -iname '*.yml' \) \ |