Merge "Update Makefile"
This commit is contained in:
commit
dcf919ddf7
27
Makefile
27
Makefile
@ -12,34 +12,33 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
HELM = helm
|
HELM := helm
|
||||||
TASK = build
|
TASK := build
|
||||||
|
|
||||||
CHARTS = helm-toolkit ceph mariadb etcd rabbitmq
|
EXCLUDES := helm-toolkit doc tests tools logs
|
||||||
CHARTS += memcached keystone glance cinder horizon neutron nova heat
|
CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
|
||||||
CHARTS += barbican mistral senlin magnum ingress
|
|
||||||
|
|
||||||
all: $(CHARTS)
|
all: $(CHARTS)
|
||||||
|
|
||||||
$(CHARTS):
|
$(CHARTS):
|
||||||
|
@echo
|
||||||
|
@echo "===== Processing [$@] chart ====="
|
||||||
@make $(TASK)-$@
|
@make $(TASK)-$@
|
||||||
|
|
||||||
init-%:
|
init-%:
|
||||||
@echo
|
|
||||||
@echo "===== Initializing $*"
|
|
||||||
if [ -f $*/Makefile ]; then make -C $*; fi
|
if [ -f $*/Makefile ]; then make -C $*; fi
|
||||||
if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
|
if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
|
||||||
|
|
||||||
lint-%: init-%
|
lint-%: init-%
|
||||||
$(HELM) lint $*
|
if [ -d $* ]; then $(HELM) lint $*; fi
|
||||||
|
|
||||||
build-%: lint-%
|
build-%: lint-%
|
||||||
$(HELM) package $*
|
if [ -d $* ]; then $(HELM) package $*; fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "Removed all .b64, _partials.tpl, and _globals.tpl files"
|
@echo "Removed .b64, _partials.tpl, and _globals.tpl files"
|
||||||
$(shell rm -rf helm-toolkit/secrets/*.b64)
|
rm -rf helm-toolkit/secrets/*.b64
|
||||||
$(shell rm -rf */templates/_partials.tpl)
|
rm -rf */templates/_partials.tpl
|
||||||
$(shell rm -rf */templates/_globals.tpl)
|
rm -rf */templates/_globals.tpl
|
||||||
|
|
||||||
.PHONY: $(CHARTS)
|
.PHONY: $(EXCLUDES) $(CHARTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user