chore(make): updates Makefile

This patch set updates the Makefile to use a helm variable so it has
parity with OpenStack-Helm-Infra repository.

Change-Id: I6cdd599320103349d2fd2486670859a6ef970886
Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
Tin Lam 2020-10-24 20:01:18 -05:00
parent 0a1d6aeb94
commit fc726aa9c0

View File

@ -12,6 +12,7 @@
# It's necessary to set this because some environments don't link sh -> bash.
SHELL := /bin/bash
HELM := helm
TASK := build
EXCLUDES := helm-toolkit doc tests tools logs tmp zuul.d releasenotes
@ -30,13 +31,13 @@ $(CHARTS):
init-%:
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-%
if [ -d $* ]; then helm lint $*; fi
if [ -d $* ]; then $(HELM) lint $*; fi
build-%: lint-%
if [ -d $* ]; then helm package $*; fi
if [ -d $* ]; then $(HELM) package $*; fi
# This is used exclusively with helm3 building in the gate to publish
package-%: init-%