summaryrefslogtreecommitdiff
path: root/src/configure.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure.erl')
-rw-r--r--src/configure.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/configure.erl b/src/configure.erl
index fecc19c6..7bb0d278 100644
--- a/src/configure.erl
+++ b/src/configure.erl
@@ -12,10 +12,14 @@
-export([start/0]).
+-include("ejabberd.hrl").
+
start() ->
EIDirS = "EI_DIR = " ++ code:lib_dir("erl_interface") ++ "\n",
RootDirS = "ERLANG_DIR = " ++ code:root_dir() ++ "\n",
- file:write_file("Makefile.inc", list_to_binary(EIDirS ++ RootDirS)),
+ Version = "EJABBERD_VERSION = " ++ ?VERSION ++ "\n",
+ file:write_file("Makefile.inc",
+ list_to_binary(EIDirS ++ RootDirS ++ Version)),
halt().