-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
41 lines (32 loc) · 922 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
modules ?= $(shell cd modules && ls -d */ 2>/dev/null | sed s,/,,)
makeable_modules ?= $(shell cd modules && ls -d */Makefile 2>/dev/null | sed s,/Makefile,,)
all: install
build-modules: install-root
@$(foreach m,$(makeable_modules),make -C modules/$(m)/ build;)
format:
@terraform fmt -recursive
generate:
@yarn --silent genjs
install: install-root install-modules
install-modules: install-root
@$(foreach m,$(makeable_modules),make -C modules/$(m)/ install;)
install-root:
@terraform get
module-build:
@make -C modules/$(m)/ build
module-install:
@make -C modules/$(m)/ install
module-test:
@make -C modules/$(m)/ test
pr:
@hub pull-request -b $(b)
test-modules: install-root
@$(foreach m,$(makeable_modules),make -C modules/$(m)/ test;)
.PHONY: all \
build-modules \
format \
generate \
install install-modules install-root \
module-build module-install module-test \
pr \
test-modules