summaryrefslogtreecommitdiff
path: root/src/exxhash/Makefile
blob: 754165e5ce0d5ef37922f620e95117dabb5a3cd1 (plain)
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
REBAR?=rebar


.PHONY: all
# target: all - Makes everything
all: build


.PHONY: build
# target: build - Builds the project
build:
	$(REBAR) compile


.PHONY: check
# target: check - Checks if project builds and passes all the tests
check: build eunit


.PHONY: clean
# target: clean - Removes build artifacts
clean:
	$(REBAR) clean
	rm -f test/*.beam


.PHONY: distclean
# target: distclean - Removes all unversioned files
distclean: clean
	git clean -fxd


.PHONY: eunit
# target: eunit - Runs eunit test suite
eunit:
	$(REBAR) eunit


.PHONY: help
# target: help - Prints this help
help:
	@egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort


%.beam: %.erl
	erlc -o test/ $<