forked from gotthardp/lorawan-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 683 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (27 loc) · 683 Bytes
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
# rebar3 logic by Bjorn-Egil Dahlberg
# https://gist.github.com/psyeugenic/d2d53a15463b218fd20c2fe7fd73ced0
REBAR3_URL=https://s3.amazonaws.com/rebar3/rebar3
ifeq ($(wildcard rebar3),rebar3)
REBAR3 = $(CURDIR)/rebar3
endif
REBAR3 ?= $(shell test -e `which rebar3` 2>/dev/null && which rebar3 || echo "./rebar3")
ifeq ($(REBAR3),)
REBAR3 = $(CURDIR)/rebar3
endif
.PHONY: deps test build
build: $(REBAR3)
@$(REBAR3) compile
$(REBAR3):
wget $(REBAR3_URL) || curl -Lo rebar3 $(REBAR3_URL)
@chmod a+x rebar3
deps:
@$(REBAR3) get-deps
clean:
@$(REBAR3) clean
distclean: clean
@$(REBAR3) delete-deps
test:
@$(REBAR3) eunit
release: test
@$(REBAR3) release
# end of file