Skip to content

Commit fdc59be

Browse files
committed
Merge pull request #23 from accense/master
Use rebar pre_hooks option.
2 parents 7fd1d28 + 6ac7648 commit fdc59be

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ default: compile
2626

2727
all: compile doc
2828

29-
include/compile_flags.hrl:
30-
./write_compile_flags $@
31-
32-
compile: include/compile_flags.hrl
29+
compile:
3330
./rebar compile
3431

3532
dialyze: compile

rebar.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@
3333
warn_obsolete_guard, warn_unused_import,
3434
warn_missing_spec, warn_untyped_record]}.
3535
{dialyzer_opts, [{warnings,[unmatched_returns]}]}.
36+
37+
{pre_hooks, [{compile,"./write_compile_flags include/compile_flags.hrl"}]}.
3638
{post_hooks, [{clean,"./clean_doc.sh"}]}.

0 commit comments

Comments
 (0)