This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (35 loc) · 1.34 KB
/
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
ROOT=./
VERSION = 0.1.1
PROJECT_NAME = nebula
REPOSITORY_URL = https://github.com/lk-geimfari/nebula
help:
@echo "Project and maintainer:"
@echo "\033[93m::::::::::::::::::::::::::::::::::::::::::::::::::::::::\033[0m"
@echo "\033[92mAuthor: Isaak Uchakaev <likid.geimfari@gmail.com>\033[0m"
@echo "\033[92mPackage: $(PROJECT_NAME) $(VERSION)\\033[0m"
@echo "\033[92mRepository: $(REPOSITORY_URL)\033[0m"
@echo "\033[92mLicense: BSD-3-Clause\033[0m"
@echo "\033[93m::::::::::::::::::::::::::::::::::::::::::::::::::::::::\033[0m"
@echo ""
@echo "Available options:"
@echo "\033[93m::::::::::::::::::::::::::::::::::::::::::::::::::::::::\033[0m"
@echo "\033[92mtest -- Run EUnit Tests.\033[0m"
@echo "\033[92mclean -- Remove compiled beam files from apps.\033[0m"
@echo "\033[92mfmt -- Format code.\033[0m"
@echo "\033[92mcompile -- Compile apps .app.src and .erl files.\033[0m"
@echo "\033[92mrelease -- Publish a new version of your package and update the package.\033[0m"
@echo "\033[93m::::::::::::::::::::::::::::::::::::::::::::::::::::::::\033[0m"
test:
rebar eunit
release:
rebar3 hex publish
fmt:
rebar3 fmt
compile:
rebar3 compile
clean:
rm --force --recursive _build/
rm --force --recursive ebin/
rm --force --recursive .eunit/
rm --force --recursive .rebar/
.PHONY: test release compile clean