make and execute a program
labmex [<option>] ... <executable> [<arguments>]
make <make_options> clean
' before, after, or
before and after compiling the target
'.'
or, if called by
labrun, the directory in which labrun's log files
are stored). This log file is not created if compilation
succeeds.
~/.labrc
and ./labrc
<exectuable>
);
multiple -t options are allowed
<executable>
(default is '.'
)
@FILE
or @ FILE
(some) command-line options are read
from FILE
(see section ).
Program is compiled and run. If the --keep
option is used or
the compilation fails, a compile log and a link to this file called
current.clog is created in the current directory, the log
directory of labrun if called from labrun, or the
log directory specified on the command line.
labmex --clean both timings 10 20 5
Performs a make clean and then a make timings. Runs the program timings with arguments 10 20 5. Then does a second make clean.
labmex -x benchmark -m -DCXXFLAGS=-O3 -t timings ~/src/timings
Performs a make -DCXXFLAGS=-O3 timings in the current directory.
Moves to the directory benchmark and executes the command
~/src/timings
in that directory.
labmex -M gmake -m -C.. -m '-DCXXFLAGS=-NDEBUG -NDEBUG2'
-x .. -t all timings
Performs a gmake -C.. '-DCXXFLAGS=-NDEBUG -NDEBUG2' all
command in the
current directory, which compiles the target all in the parent
directory (the -C.. option of gmake). Moves to the
parent directory and executes the command timings.