-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 910 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
.PHONY: compile compile_dev release_agent release_master tar_agent tar_master iex_dev all clean
all: compile release_agent release_master tar_agent tar_master
compile:
@echo "Compiling the application..."
mix do deps.get, compile
compile_dev:
@echo "Compiling the application in development environment..."
MIX_ENV=dev mix do deps.get, compile
release_agent:
@echo "Creating release for agent..."
MIX_ENV=prod mix release agent
release_master:
@echo "Creating release for master..."
MIX_ENV=prod mix release master
iex_dev_master:
@echo "Starting an interactive Elixir session in development environment..."
iex -S mix run --no-start scripts/start-master.exs
iex_dev_agent:
@echo "Starting an interactive Elixir session in development environment..."
iex -S mix run --no-start scripts/start-agent.exs
clean:
@echo "Cleaning up..."
mix clean
rm -rf _build
rm -rf deps
rm -rf .elixir_ls