tests: add top-level Makefile and run.sh
Change-Id: Ieaef51422c11ec27d56ff19953f9a5dd1f563353
[ROCm/rocprofiler commit: a5a56425bb]
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# specify each subdir here
|
||||
SUBDIRS = test_cache
|
||||
|
||||
TARGETS = all clean
|
||||
|
||||
.PHONY: $(TARGETS) default
|
||||
|
||||
# change this line to change the default action
|
||||
# (using one of the targets above)
|
||||
default: all
|
||||
|
||||
define do-target
|
||||
$(1): $$(foreach subdir, $$(SUBDIRS), $(1)-$$(subdir))
|
||||
|
||||
$(1)-%:
|
||||
$$(MAKE) -C $$* $(1)
|
||||
endef
|
||||
|
||||
$(foreach tgt, $(TARGETS), $(eval $(call do-target,$(tgt))))
|
||||
Reference in New Issue
Block a user