Merge "Update Makefile"

This commit is contained in:
Jenkins 2017-07-10 00:04:19 +00:00 committed by Gerrit Code Review
commit dcf919ddf7

View File

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