From 7cf6267ff4116008018b1027e31b1ae05f64b03d Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Tue, 30 Oct 2012 00:08:42 +0100 Subject: [PATCH] Ensure compile_flags.hrl is built even without make Windows by default does not have a working make. This patch ensures pure Erlang apps can be built with PropEr support despite the lack of a native make command. --- rebar.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index 076f662d..d17ac7ca 100644 --- a/rebar.config +++ b/rebar.config @@ -34,5 +34,6 @@ warn_missing_spec, warn_untyped_record]}. {dialyzer_opts, [{warnings, [unmatched_returns]}]}. -{pre_hooks, [{compile, "make include/compile_flags.hrl"}]}. +{pre_hooks, [{"(linux|bsd|darwin|solaris)", compile, "make include/compile_flags.hrl"}, + {"win32", compile, "escript.exe write_compile_flags include/compile_flags.hrl"}]}. {post_hooks, [{clean, "./clean_doc.sh"}]}.