Permalink
Browse files

Use rebar pre_hooks option.

  • Loading branch information...
1 parent 7fd1d28 commit 6ac764864bed9d66ebb598b37728140db70092fc Ryosuke Nakai committed Feb 8, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −4 Makefile
  2. +2 −0 rebar.config
View
@@ -26,10 +26,7 @@ default: compile
all: compile doc
-include/compile_flags.hrl:
- ./write_compile_flags $@
-
-compile: include/compile_flags.hrl
+compile:
./rebar compile
dialyze: compile
View
@@ -33,4 +33,6 @@
warn_obsolete_guard, warn_unused_import,
warn_missing_spec, warn_untyped_record]}.
{dialyzer_opts, [{warnings,[unmatched_returns]}]}.
+
+{pre_hooks, [{compile,"./write_compile_flags include/compile_flags.hrl"}]}.
{post_hooks, [{clean,"./clean_doc.sh"}]}.

0 comments on commit 6ac7648

Please sign in to comment.