Skip to content

Commit 9871587

Browse files
committed
Refactor Makefile
1 parent 5ab464c commit 9871587

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

Makefile

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,41 +30,11 @@ IMAGE = cytopia/terraform-docs
3030
FLAVOUR = latest
3131

3232
FILE = Dockerfile
33-
ifeq ($(strip $(VERSION)),0.1.0)
34-
FILE = Dockerfile-0.11
35-
else
36-
ifeq ($(strip $(VERSION)),0.1.1)
37-
FILE = Dockerfile-0.11
38-
else
39-
ifeq ($(strip $(VERSION)),0.2.0)
40-
FILE = Dockerfile-0.11
41-
else
42-
ifeq ($(strip $(VERSION)),0.3.0)
43-
FILE = Dockerfile-0.11
44-
else
45-
ifeq ($(strip $(VERSION)),0.4.0)
46-
FILE = Dockerfile-0.11
47-
else
48-
ifeq ($(strip $(VERSION)),0.4.5)
49-
FILE = Dockerfile-0.11
50-
else
51-
ifeq ($(strip $(VERSION)),0.5.0)
52-
FILE = Dockerfile-0.11
53-
else
54-
ifeq ($(strip $(VERSION)),0.6.0)
55-
FILE = Dockerfile-0.11
56-
else
57-
ifeq ($(strip $(VERSION)),0.7.0)
58-
FILE = Dockerfile-0.11
59-
endif
60-
endif
61-
endif
62-
endif
63-
endif
64-
endif
65-
endif
66-
endif
33+
OVERRIDE_VERSIONS := 0.1.0 0.1.1 0.2.0 0.3.0 0.4.0 0.4.5 0.5.0 0.6.0 0.7.0
34+
ifeq ($(filter $(VERSION),$(OVERRIDE_VERSIONS)), $(VERSION))
35+
FILE = Dockerfile-0.11
6736
endif
37+
6838
DIR = Dockerfiles
6939

7040
# Building from master branch: Tag == 'latest'

0 commit comments

Comments
 (0)