Mike Elliott | ae51de8 | 2018-02-16 10:48:59 -0500 | [diff] [blame] | 1 | EXCLUDES := test |
| 2 | HELM_CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.))) |
| 3 | |
| 4 | .PHONY: $(EXCLUDES) $(HELM_CHARTS) |
| 5 | |
| 6 | all: $(HELM_CHARTS) |
| 7 | |
| 8 | $(HELM_CHARTS): |
| 9 | @echo "\n[$@]" |
| 10 | @make lint-$@ |
| 11 | |
| 12 | make-%: |
| 13 | @if [ -f $*/Makefile ]; then make -C $*; fi |
| 14 | |
| 15 | dep-%: make-% |
| 16 | @if [ -f $*/requirements.yaml ]; then helm dep up $*; fi |
| 17 | |
| 18 | lint-%: dep-% |
| 19 | @if [ -f $*/Chart.yaml ]; then helm lint $*; fi |
| 20 | |
| 21 | clean: |
| 22 | @rm -f */requirements.lock |
| 23 | @rm -f *tgz */charts/*tgz |
| 24 | %: |
| 25 | @: |