Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-monitor-armada-app / monitor-helm-elastic / 0001-add-makefile.patch
1 From c9c3e8ff214360eb2e5d9e7728b7bee8fe771eea Mon Sep 17 00:00:00 2001
2 From: Kevin Smith <kevin.smith@windriver.com>
3 Date: Tue, 1 Oct 2019 15:25:32 -0400
4 Subject: [PATCH 1/1] add makefile
5
6 ---
7  Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
8  1 file changed, 43 insertions(+)
9  create mode 100644 Makefile
10
11 diff --git a/Makefile b/Makefile
12 new file mode 100644
13 index 0000000..5cf4447
14 --- /dev/null
15 +++ b/Makefile
16 @@ -0,0 +1,43 @@
17 +#
18 +# Copyright 2017 The Openstack-Helm Authors.
19 +#
20 +# Copyright (c) 2018 Wind River Systems, Inc.
21 +#
22 +# SPDX-License-Identifier: Apache-2.0
23 +#
24 +# It's necessary to set this because some environments don't link sh -> bash.
25 +SHELL := /bin/bash
26 +TASK  := build
27 +
28 +EXCLUDES := helm-toolkit doc tests tools logs tmp
29 +CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
30 +
31 +.PHONY: $(EXCLUDES) $(CHARTS)
32 +
33 +all: $(CHARTS)
34 +
35 +$(CHARTS):
36 +       @if [ -d $@ ]; then \
37 +               echo; \
38 +               echo "===== Processing [$@] chart ====="; \
39 +               make $(TASK)-$@; \
40 +       fi
41 +
42 +init-%:
43 +       if [ -f $*/Makefile ]; then make -C $*; fi
44 +       if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
45 +
46 +lint-%: init-%
47 +       if [ -d $* ]; then helm lint $*; fi
48 +
49 +build-%: lint-%
50 +       if [ -d $* ]; then helm package $*; fi
51 +
52 +clean:
53 +       @echo "Clean all build artifacts"
54 +       rm -f */templates/_partials.tpl */templates/_globals.tpl
55 +       rm -f *tgz */charts/*tgz */requirements.lock
56 +       rm -rf */charts */tmpcharts
57 +
58 +%:
59 +       @:
60 -- 
61 1.8.3.1
62