Browse Source

Update Makefile to have generically useful targets

Change-Id: I7af3eba1d073ea4c6d3e88fd77547818cd1285bd
Chris Wedgwood 1 year ago
parent
commit
c7b0aa381b
1 changed files with 11 additions and 8 deletions
  1. 11
    8
      Makefile

+ 11
- 8
Makefile View File

@@ -1,18 +1,18 @@
1 1
 # This Makefile is used during development and can usually be ignored
2 2
 # by most people.
3 3
 
4
-validation:
4
+default:
5
+	@echo Useful valid targets are test-validate, test-install, test-uninstall
6
+
7
+all: test-validate test-install test-uninstall
8
+
9
+test-validate:
5 10
 	@echo ===========================================================================
6 11
 	python validate.py examples/*
7 12
 	@echo ===========================================================================
8 13
 
9
-all: test
10
-
11
-default: test
12 14
 
13
-test: install
14
-
15
-install: build
15
+test-install: build
16 16
 	@echo
17 17
 	-helm delete --purge berth
18 18
 	@echo
@@ -25,6 +25,9 @@ install: build
25 25
 	@echo
26 26
 	kubectl get pods -o wide
27 27
 
28
+test-uninstall:
29
+	helm delete --purge berth
30
+
28 31
 build:
29 32
 	@echo
30 33
 	helm lint berth
@@ -33,4 +36,4 @@ clean:
33 36
 	rm -f *~ */*~ */*/*~ berth-0.1.0.tgz
34 37
 
35 38
 .PHONY:
36
-	all default build clean
39
+	all default build clean test-validate test-install test-uninstall

Loading…
Cancel
Save