
This is the initial commit for the app skeleton. - centos files: files related with the infra and docker images - rst files: files with doc about snmp-armada-app - stx-snmp-helm folder: files related with helm charts and the app creation Story: 2008132 Task: 41122 Change-Id: I0c4b9843544228bb04cb26504674134dd0e3ceb8 Signed-off-by: Nicolas Alvarez <nicolas.alvarez@windriver.com>
44 lines
944 B
Makefile
44 lines
944 B
Makefile
#
|
|
# Copyright 2017 The Openstack-Helm Authors.
|
|
#
|
|
# Copyright (c) 2019 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# It's necessary to set this because some environments don't link sh -> bash.
|
|
SHELL := /bin/bash
|
|
TASK := build
|
|
|
|
EXCLUDES := helm-toolkit doc tests tools logs tmp
|
|
CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
|
|
|
|
.PHONY: $(EXCLUDES) $(CHARTS)
|
|
|
|
all: $(CHARTS)
|
|
|
|
$(CHARTS):
|
|
@if [ -d $@ ]; then \
|
|
echo; \
|
|
echo "===== Processing [$@] chart ====="; \
|
|
make $(TASK)-$@; \
|
|
fi
|
|
|
|
init-%:
|
|
if [ -f $*/Makefile ]; then make -C $*; fi
|
|
if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
|
|
|
|
lint-%: init-%
|
|
if [ -d $* ]; then helm lint $*; fi
|
|
|
|
build-%:
|
|
if [ -d $* ]; then helm package $*; fi
|
|
|
|
clean:
|
|
@echo "Clean all build artifacts"
|
|
rm -f */templates/_partials.tpl */templates/_globals.tpl
|
|
rm -f *tgz */charts/*tgz */requirements.lock
|
|
rm -rf */charts */tmpcharts
|
|
|
|
%:
|
|
@:
|