MAKE Compile functions in the Spike Train Analysis Toolkit.
MAKE compiles the necessary functions in the Spike Train Analysis
Toolkit. This m-file shares some similarities with the GNU make
utility in its basic operation and options. Namely, a particular
MEX file will be compiled only if it doesn't already exist, or if
its modification date is older than the modification date of any
of its dependencies.
Additionally, the following options are permitted, passed on the
command line as with GNU make or in functional form as individual
string arguments (note that in Octave prior to version 3.2 you
must first give the command "mark_as_command make" or use the
functional form):
-B, --always-make Unconditionally compile all MEX files.
-Dname[=value] Define a symbol name (and optional value) to the C
preprocessor (see also MEX).
-g Compile MEX files with debug symbols.
-h, --ignore-header-files Do not consider the modification date
of the header files.
-n, --just-print, --dry-run, --recon Print the commands that
would be executed, but do not execute them.
Specific goals or targets may also be specified to compile a
particular portion of the toolkit. If no goal is specified, then
all goals will be compiled. The currently available goals are
(multiple goals may be passed):
all: Compiles all code and prepares data (default goal).
input: Compiles input code.
shared: Compiles shared code.
direct: Compiles direct method code.
metric: Compiles metric space method code.
binless: Compiles binless method code.
ctwmcmc: Compiles ctwmcmc method code.
data: Prepares data.
After the toolkit has been compiled, you may use the following
goals to check and install the toolkit:
check: Checks that all toolkit functions work as expected (runs
demo/staverify).
install: "Installs" the toolkit by adding and saving the toolkit
path to your pathdef (may not work on some systems - please
save path manually).
Examples:
make
Conditionally compiles the whole toolkit.
make -B
Unconditionally compiles the whole toolkit.
make -g -B ctwmcmc
Unconditionally compiles ctwmcmc method code with debug
symbols (w/o -B may not give desired result).
make --just-print
Print the commands that would be executed to conditionally
compile the whole toolkit.
make('-n','--always-make','binless')
Functional form to print the commands that would be
executed to compile all binless methods.
This function calls: