-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (42 loc) · 985 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
42
43
44
45
46
47
48
49
50
51
52
53
54
BUNDLES=$(wildcard core/bundles/*)
MIX_PROJECTS=core banking_proxy
.PHONY: all
all: test format compile credo deps
.PHONY: setup
setup: install_assets
.PHONY: install_assets
install_assets:
@echo "Installing assets"
@cd ./core/assets && npm install
.PHONY: prepare
prepare: test format compile credo
.PHONY: dialyzer
dialyzer: FORCE
cd core && mix dialyzer --force-check --format short
.PHONY: test
test: ${MIX_PROJECTS:%=test/%}
test/%: FORCE
cd $* && mix test
.PHONY: format
format: ${MIX_PROJECTS:%=format/%}
format/%: FORCE
cd $* && mix format
.PHONY: credo
credo: ${MIX_PROJECTS:%=credo/%}
credo/%: FORCE
cd $* && mix credo --all
.PHONY: compile
compile: ${MIX_PROJECTS:%=%/_build}
%/_build: FORCE
cd $* && mix compile --force --warnings-as-errors
.PHONY: deps
deps: ${MIX_PROJECTS:%=%/deps}
%/deps: FORCE
cd $* && mix deps.get
.PHONY: docs
docs: ${MIX_PROJECTS:%=%/docs}
%/docs:
mkdir -p doc
cd $* && mix docs
cp -R $*/doc/ doc/`basename $*`
.PHONY: FORCE