Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

make(3erl) [linux man page]

make(3erl)						     Erlang Module Definition							make(3erl)

NAME
make - A Make Utility for Erlang DESCRIPTION
The module make provides a set of functions similar to the UNIX type Make functions. EXPORTS
all() -> up_to_date | error all(Options) -> up_to_date | error Types Options = [Option] Option = noexec | load | netload | <compiler option> This function first looks in the current working directory for a file named Emakefile (see below) specifying the set of modules to compile and the compile options to use. If no such file is found, the set of modules to compile defaults to all modules in the cur- rent working directory. Traversing the set of modules, it then recompiles every module for which at least one of the following conditions apply: * there is no object file, or * the source file has been modified since it was last compiled, or, * an include file has been modified since the source file was last compiled. As a side effect, the function prints the name of each module it tries to compile. If compilation fails for a module, the make pro- cedure stops and error is returned. Options is a list of make- and compiler options. The following make options exist: * noexec No execution mode. Just prints the name of each module that needs to be compiled. * load Load mode. Loads all recompiled modules. * netload Net load mode. Loads all recompiled modules an all known nodes. All items in Options that are not make options are assumed to be compiler options and are passed as-is to compile:file/2 . Options defaults to [] . files(ModFiles) -> up_to_date | error files(ModFiles, Options) -> up_to_date | error Types ModFiles = [Module | File] Module = atom() File = string() Options = [Option] Option = noexec | load | netload | <compiler option> files/1,2 does exactly the same thing as all/0,1 but for the specified ModFiles , which is a list of module or file names. The file extension .erl may be omitted. The Emakefile (if it exists) in the current directory is searched for compiler options for each module. If a given module does not exist in Emakefile or if Emakefile does not exist, the module is still compiled. EMAKEFILE
make:all/0,1 and make:files/1,2 looks in the current working directory for a file named Emakefile . If it exists, Emakefile should contain elements like this: Modules. {Modules,Options}. Modules is an atom or a list of atoms. It can be * a module name, e.g. file1 * a module name in another directory, e.g. ../foo/file3 * a set of modules specified with a wildcards, e.g. 'file*' * a wildcard indicating all modules in current directory, i.e. '*' * a list of any of the above, e.g. ['file*','../foo/file3','File4'] Options is a list of compiler options. Emakefile is read from top to bottom. If a module matches more than one entry, the first match is valid. For example, the following Emake- file means that file1 shall be compiled with the options [debug_info,{i,"../foo"}] , while all other files in the current directory shall be compiled with only the debug_info flag. {'file1',[debug_info,{i,"../foo"}]}. {'*',[debug_info]}. Ericsson AB tools 2.6.6.3 make(3erl)

Check Out this Related Man Page

asn1rt(3erl)						     Erlang Module Definition						      asn1rt(3erl)

NAME
asn1rt - ASN.1 runtime support functions DESCRIPTION
This module is the interface module for the ASN.1 runtime support functions. To encode and decode ASN.1 types in runtime the functions in this module should be used. EXPORTS
start() -> ok |{error,Reason} Types Reason = term() Starts the asn1 server that loads the drivers. The server schedules a driver that is not blocked by another caller. The driver is used by the asn1 application if specs are com- piled with options [per_bin, optimize] or [ber_bin, optimize, driver] . The server will be started automatically at encode/decode if it isn't done explicitly. If encode/decode with driver is used in test or industrial code it is a performance gain to start it explicitly to avoid the one time load in run-time. stop() -> ok |{error,Reason} Types Reason = term() Stops the asn1 server and unloads the drivers. decode(Module,Type,Bytes) -> {ok,Value}|{error,Reason} Types Module = Type = atom() Value = Reason = term() Bytes = binary | [Int] when integer(Int), Int >= 0, Int =< 255 | binary Decodes Type from Module from the list of bytes or binary Bytes . If the module is compiled with ber_bin or per_bin option Bytes must be a binary. Returns {ok,Value} if successful. encode(Module,Type,Value)-> {ok,BinOrList} | {error,Reason} Types Module = Type = atom() Value = term() BinOrList = Bytes | binary() Bytes = [Int|binary|Bytes] when integer(Int), Int >= 0, Int =< 255 Reason = term() Encodes Value of Type defined in the ASN.1 module Module . Returns a possibly nested list of bytes and or binaries if successful. If Module was compiled with the options per_bin and optimize the result is a binary. To get as fast execution as possible the encode function only performs rudimentary tests that the input Value is a correct instance of Type . The length of strings is for example not always checked. info(Module) -> {ok,Info} | {error,Reason} Types Module = atom() Info = list() Reason = term() info/1 returns the version of the asn1 compiler that was used to compile the module. It also returns the compiler options that was used. load_driver() -> ok | {error,Reason} Types Reason = term() This function loads the linked-in driver before the first call to encode. If this function is not called the driver will be loaded automatically at the first call to encode. If one doesn't want the performance cost of a driver load when the application is run- ning, this function makes it possible to load the driver in an initialization. The driver is only used when encoding/decoding ASN.1 files that were compiled with the options per_bin and optimize . unload_driver() -> ok | {error,Reason} Types Reason = term() This function unloads the linked-in driver. When the driver has been loaded it remains in the environment until it is unloaded. Nor- mally the driver should remain loaded, it is crucial for the performance of ASN.1 encoding. The driver is only used when ASN.1 modules have been compiled with the flags per_bin and optimize . utf8_binary_to_list(UTF8Binary) -> {ok,UnicodeList} | {error,Reason} Types UTF8Binary = binary() UnicodeList = [integer()] Reason = term() utf8_binary_to_list/1 Transforms a UTF8 encoded binary to a list of integers, where each integer represents one character as its unicode value. The function fails if the binary is not a properly encoded UTF8 string. utf8_list_to_binary(UnicodeList) -> {ok,UTF8Binary} | {error,Reason} Types UnicodeList = [integer()] UTF8Binary = binary() Reason = term() utf8_list_to_binary/1 Transforms a list of integers, where each integer represents one character as its unicode value, to a UTF8 encoded binary. validate(Module,Type,Value) -> ok | {error,Reason} Types Module = Type = atom() Value = term() Validates that Value conforms to Type from Module . Not implemented in this version of the ASN.1 application. Ericsson AB asn1 1.6.16 asn1rt(3erl)
Man Page