Changes between Version 2 and Version 3 of ManagingFiles


Ignore:
Timestamp:
May 11, 2015, 2:16:09 PM (10 years ago)
Author:
manualwiki
Comment:

Extending ri:add_app(...) section.

Legend:

Unmodified
Added
Removed
Modified
  • ManagingFiles

    v2 v3  
    223223==== Rebar Parser ==== 
    224224 
    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.  
     225The 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.\\ 
     226The rebar parser reads recursively the directories and the rebar.config files.\\ 
    227227The subdirectories inhert the the rebar.config options from the parent directories the rebar.config options from the actual directory may overrides them. 
    228228 
     
    270270Further reading: http://www.erlang.org/doc/man/make.html. 
    271271 
    272 refcore_emakefile_parser:parse/2 
     272Interface options refcore_emakefile_parser:parse/2 
    273273* DirectoryOrEmakefilePath - Path to the Emakefile or to the application directory 
    274274* _  - second argument is ignored during the Emakefile parsing. 
    275275[=#point3 ]  
    276276==== erlang_mk Parser ==== 
     277Expected directory structure: src, ebin, test 
     278Application requirements: 
     279erlang.mk contains common makefile rules for building an application.\\ 
     280Use it together with GNU make, add it to your project an include it in your Makefile: 
     281{{{ 
     282#!sh 
     283PROJECT = my_project 
     284include erlang.mk 
     285}}} 
     286It provides a set of core rules like all, deps, app, rel, docs, tests, clean, etc... 
     287 
     288A convenient way to create an application skeleton using erlang.mk is: 
     289{{{ 
     290#!sh 
     291make -f erlang.mk bootstrap 
     292}}} 
    277293 
    278294Further reading: https://github.com/ninenines/erlang.mk 
     295 
     296Interface 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 
     300The 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 
    279305[=#point4 ]  
    280306==== Makefile Parser ==== 
     307The Makefile Parser tries to evaluate three kind of macros directly from the Makefile.\\ 
     308 
     309Default 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 
     314The default Makefile macros can be overridden via ri:add_app("....", UserOptions) \\ 
     315UserOptions = [{include_macro, 'INCDIR'}, {target_macro, 'CXC_TARGET'}, {sec_include_macro,'CXA_TARGET'}] \\ 
     316 
     317 
    281318Further reading: http://www.gnu.org/software/make/manual/make.html 
    282319