feat: enhanced the way the compiled tests are selected
This commit is contained in:
parent
8abf988045
commit
b3afab289b
35
Makefile
35
Makefile
@ -3,23 +3,23 @@ src_dir?=src
|
|||||||
tst_dir?=tst
|
tst_dir?=tst
|
||||||
install_dir?=install
|
install_dir?=install
|
||||||
|
|
||||||
bins?= \
|
# Comment out the bins that doesn't need to be compiled
|
||||||
01-main \
|
bins+=01-main
|
||||||
02-switch \
|
bins+=02-switch
|
||||||
03-equity \
|
bins+=03-equity
|
||||||
11-join \
|
bins+=11-join
|
||||||
12-join-main \
|
bins+=12-join-main
|
||||||
21-create-many \
|
bins+=21-create-many
|
||||||
22-create-many-recursive \
|
bins+=22-create-many-recursive
|
||||||
23-create-many-once \
|
bins+=23-create-many-once
|
||||||
31-switch-many \
|
bins+=31-switch-many
|
||||||
32-switch-many-join \
|
bins+=32-switch-many-join
|
||||||
33-switch-many-cascade \
|
bins+=33-switch-many-cascade
|
||||||
51-fibonacci \
|
bins+=51-fibonacci
|
||||||
61-mutex \
|
bins+=61-mutex
|
||||||
62-mutex \
|
bins+=62-mutex
|
||||||
71-preemption \
|
bins+=71-preemption
|
||||||
81-deadlock
|
bins+=81-deadlock
|
||||||
|
|
||||||
bins_target=$(addprefix ${build_dir}/,${bins})
|
bins_target=$(addprefix ${build_dir}/,${bins})
|
||||||
install_bins_targets=$(addprefix ${install_dir}/bin/,${bins})
|
install_bins_targets=$(addprefix ${install_dir}/bin/,${bins})
|
||||||
@ -38,7 +38,6 @@ all: build
|
|||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: build ${install_bins_targets}
|
install: build ${install_bins_targets}
|
||||||
|
|
||||||
.PHONY: ${install_bins_targets}
|
|
||||||
${install_bins_targets}: ${install_dir}/bin/%: ${build_dir}/%
|
${install_bins_targets}: ${install_dir}/bin/%: ${build_dir}/%
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
install $^ $@
|
install $^ $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user