- To build and run task
$ make run task=0
- To rebuild and run task
$ make rerun task=0
- You can add extra c files to the build
- Let's say you want to build a task that has a dependency from previous tasks
- The dependency files name are
0-binary_tree_node.c
,1-binary_tree_insert_left.c
,2-binary_tree_insert_right.c
$ make run task=16 extra="binary_tree_node binary_tree_insert*"
# OR
$ make rerun task=16 extra="binary_tree_node" files="*-binary_tree_insert*.c"
-
The
extra
variable is the same as thefiles
variable the only deference is that theextra
variable adds*-
before the wildcard and.c
after it. -
add
g=1
to build with the-g
flag
build
: builds the task chosen by theTASK
variable withEXTRA
run
: executes the executable and if not exists runs thebuild
targetrerun
: runsfclean
thenrun
betty
: executes thebetty
command to check all source codeclean
: removes all object filesfclean
: removes all object files and the executable