forked from genstackio/terraform-aws-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 874 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
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;)
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 \
generate \
install install-modules install-root \
module-build module-install module-test \
pr \
test-modules