-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 763 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 763 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
REBAR ?= rebar
IS_REBAR3:=$(shell expr `$(REBAR) --version | awk -F '[ .]' '/rebar / {print $$2}'` '>=' 3)
ERL=erl
all: src
src:
$(REBAR) get-deps
$(REBAR) compile
clean:
$(REBAR) clean
ifeq "$(IS_REBAR3)" "1"
test:
$(REBAR) eunit -v
spec:
$(ERL) -noinput +B -pa _build/default/lib/fast_xml/ebin -eval 'case fxml_gen:compile("spec/fxmlrpc_codec.spec", [{erl_dir, "src"}, {hrl_dir, "include"}]) of ok -> halt(0); _ -> halt(1) end.'
else
test: all
$(REBAR) -v skip_deps=true eunit
endif
spec:
$(ERL) -noinput +B -pa ebin -pa deps/*/ebin -eval 'case fxml_gen:compile("spec/fxmlrpc_codec.spec", [{erl_dir, "src"}, {hrl_dir, "include"}]) of ok -> halt(0); _ -> halt(1) end.'
check-syntax:
gcc -o nul -S ${CHK_SOURCES}
.PHONY: clean src test all spec