forked from marcdel/open_telemetry_decorator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 755 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
# https://tech.davis-hansson.com/p/make/
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
SOURCE := $(shell find lib -name \*.ex)
TEST := $(shell find test -name \*.ex)
.PHONY: check clean
check: _build/dev _build/test
mix test
mix credo --strict
mix dialyzer
mix docs
mix format
@echo "OK"
mix.lock deps: mix.exs
mix deps.get
mix deps.unlock --unused
mix deps.clean --unused
touch $@
_build/dev: deps $(SOURCE)
MIX_ENV=dev mix compile --warnings-as-errors
touch $@
_build/test: deps $(SOURCE) $(TEST)
MIX_ENV=test mix compile --warnings-as-errors
touch $@
clean:
rm -rf _build/test/lib _build/dev/lib _build/prod/lib cover deps doc