-
Notifications
You must be signed in to change notification settings - Fork 66
/
Makefile
executable file
·58 lines (42 loc) · 1.53 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
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: test
all: compile
# Check if rebar3.mk exists, and if not, download it
ifeq ("$(wildcard rebar3.mk)","")
$(shell curl -O https://raw.githubusercontent.com/choptastic/rebar3.mk/master/rebar3.mk)
endif
# rebar3.mk adds a new rebar3 rule to your Makefile
# (see https://github.com/choptastic/rebar3.mk) for full info
include rebar3.mk
clean:
rm -fr _build rebar.lock
compile: rebar3
$(REBAR) compile
eunit: rebar3
rm -fr _build/test
$(REBAR) eunit --app nitrogen_core
publish: rebar3
$(REBAR) hex publish
test: rebar3
mkdir -p test
rm -fr test/browsertest
$(MAKE) eunit
git clone https://github.com/nitrogen/NitrogenProject.com.git -b rebar3 test/browsertest
mkdir -p test/browsertest/_checkouts
ln -s ../../.. test/browsertest/_checkouts/nitrogen_core
cd test/browsertest; make test_all TESTLOGDIR="../results.$(shell date +%Y-%m-%d.%H%M%S)"
rm -fr test/browsertest
dash-docs:
rm -f doc/dash/Nitrogen.tgz
doc/dash/md2docset
cd doc/dash; tar --exclude='.DS_Store' -zcvf Nitrogen.tgz Nitrogen.docset
mv doc/dash/Nitrogen.tgz .
@echo "Dash Docset created and can be found at Nitrogen.tgz in this directory"
dialyzer: rebar3
$(REBAR) dialyzer
# This is primarily for Travis build testing, as each build instruction will overwrite the previous
travis: eunit dialyzer
vim:
utils/vim-headers/add_vim.sh
## DON'T THINK WE NEED THIS ANYMORE, BUT WE'LL KEEP IT JUST IN CASE
#ERLANG_VERSION_CHECK := erl -eval "io:format(\"~s\",[erlang:system_info(otp_release)]), halt()." -noshell
#ERLANG_VERSION = $(shell $(ERLANG_VERSION_CHECK))