Changes between Version 2 and Version 3 of ManagingFiles
- Timestamp:
- May 11, 2015, 2:16:09 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ManagingFiles
v2 v3 223 223 ==== Rebar Parser ==== 224 224 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.\\ 227 227 The subdirectories inhert the the rebar.config options from the parent directories the rebar.config options from the actual directory may overrides them. 228 228 … … 270 270 Further reading: http://www.erlang.org/doc/man/make.html. 271 271 272 refcore_emakefile_parser:parse/2272 Interface options refcore_emakefile_parser:parse/2 273 273 * DirectoryOrEmakefilePath - Path to the Emakefile or to the application directory 274 274 * _ - second argument is ignored during the Emakefile parsing. 275 275 [=#point3 ] 276 276 ==== erlang_mk Parser ==== 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 }}} 277 293 278 294 Further reading: https://github.com/ninenines/erlang.mk 295 296 Interface options refcore_erlang_mk_parser:parse/2 297 * DirectoryOrErlMkPath - Path to the Makefile or to the application directory 298 * _ - second argument is ignored during the Emakefile parsing. 299 300 The parser reads the files from the src, test directories. \\Also processes the Makefile and checks the presence of the required "include erlang.mk" keywords and reads the variables below: 301 * ERLC_OPTS - compilation options 302 * DEPS_DIR - location of the dependencies 303 * DEPS - names of the dependencies 304 279 305 [=#point4 ] 280 306 ==== Makefile Parser ==== 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 281 318 Further reading: http://www.gnu.org/software/make/manual/make.html 282 319