These first steps will guide you on how to configure, compile and run native AGE project created on Erlang.
Therefore, we are assuming you are already aware about the directory structure guidelines to setup an Erlang's development environment.
Prepare the basic configuration
Every MAKE_APP project has to have a text-based configuration file saved in the root directory where the tool-set is going to be used. The configuration file must be named make_app.config. The name is case sensitive! Detailed explanation about all elements in this file are provided on "Configuration" page. Now, create a new file named "make_app.config" with your favorite text editor and let's take a look at the sample below. |
Sample of make_app.confg for Erlang application
Sample configuration explained
Perform tasks from the command line
The MAKE_APP tool-set has the syntax from the command line: $ escript make_app.beam <solution> <call> <options> where: o<solution> - The solution identifier specified in the configuration file by the solution element. o<call> - Custom command for invoking the relevant tasks defined in the configuration file. This parameter is optional. When omitted the MAKE_APP shall perform all tasks from all projects as defined by the configuration. o<options> - Additional list of properties provided to the invoked commands. The sample configuration above could be invoked as follows: 1)escript make_app.beam my_solution This invocation will perform all tasks of solution "my_solution" in the following order: debug — make — run 2)escript make_app.beam my_solution build --all This invocation will perform only tasks debug — make. Task "debug" will recognize the option -all and will compile all source code files found in sub-directory "src". |