Added forgotten -f option to sheebang in makefile.
[erlang-estap.git] / Makefile
1 #!/usr/bin/make -f
2
3 #-----------------------------------------------------------------------------
4
5 #DIALYZER_PLT = ~/.dialyzer_plt
6 DIALYZER_OPTS = --no_check_plt $(foreach D,$(DIALYZER_PLT),--plt $D)
7
8 DIAGRAMS = $(basename $(notdir $(wildcard diagrams/*.diag)))
9 DIAGRAMS_SVG = $(foreach D,$(DIAGRAMS),doc/images/$D.svg)
10
11 #-----------------------------------------------------------------------------
12
13 .PHONY: all doc edoc diagrams compile build dialyzer
14
15 all: compile doc
16
17 doc edoc: diagrams
18         rebar doc
19
20 compile build:
21         rebar compile
22
23 diagrams: $(DIAGRAMS_SVG)
24
25 doc/images/%.svg: diagrams/%.diag
26         blockdiag -o $@ -T svg $<
27
28 YECC_ERL_FILES = $(subst .yrl,.erl,$(subst .xrl,.erl,$(wildcard src/*.[xy]rl)))
29 ERL_SOURCE_FILES = $(filter-out $(YECC_ERL_FILES),$(wildcard src/*.erl))
30 dialyzer:
31         @echo "dialyzer $(strip $(DIALYZER_OPTS)) --src src/*.erl"
32         @dialyzer $(strip $(DIALYZER_OPTS)) --src $(ERL_SOURCE_FILES)
33
34 #-----------------------------------------------------------------------------
35 # vim:ft=make