| 225 | | The application directory layout must follow the Rebar and OTP conventions (src, priv, include, ebin), for further details please refer to https://github.com/rebar/rebar/wiki. |
| 226 | | The rebar parser reads recursively the directories and the rebar.config files. |
| | 225 | The application directory layout must follow the Rebar and OTP conventions (src, priv, include, ebin), for further details please refer to https://github.com/rebar/rebar/wiki.\\ |
| | 226 | The rebar parser reads recursively the directories and the rebar.config files.\\ |
| | 277 | Expected directory structure: src, ebin, test |
| | 278 | Application requirements: |
| | 279 | erlang.mk contains common makefile rules for building an application.\\ |
| | 280 | Use it together with GNU make, add it to your project an include it in your Makefile: |
| | 281 | {{{ |
| | 282 | #!sh |
| | 283 | PROJECT = my_project |
| | 284 | include erlang.mk |
| | 285 | }}} |
| | 286 | It provides a set of core rules like all, deps, app, rel, docs, tests, clean, etc... |
| | 287 | |
| | 288 | A convenient way to create an application skeleton using erlang.mk is: |
| | 289 | {{{ |
| | 290 | #!sh |
| | 291 | make -f erlang.mk bootstrap |
| | 292 | }}} |
| | 307 | The Makefile Parser tries to evaluate three kind of macros directly from the Makefile.\\ |
| | 308 | |
| | 309 | Default Makefile variables: |
| | 310 | * INCDIR - Makefile macro that contains the includes |
| | 311 | * CXC_TARGET - Makefile macro that contains the destination files |
| | 312 | * CXA_TARGET - Secondary include Makefile macro. |
| | 313 | |
| | 314 | The default Makefile macros can be overridden via ri:add_app("....", UserOptions) \\ |
| | 315 | UserOptions = [{include_macro, 'INCDIR'}, {target_macro, 'CXC_TARGET'}, {sec_include_macro,'CXA_TARGET'}] \\ |
| | 316 | |
| | 317 | |