tests: add top-level Makefile and run.sh

Change-Id: Ieaef51422c11ec27d56ff19953f9a5dd1f563353


[ROCm/rocprofiler commit: a5a56425bb]
This commit is contained in:
Xianwei Zhang
2019-07-18 05:15:06 -05:00
rodzic f5b54bff3d
commit 19a2bdc734
4 zmienionych plików z 65 dodań i 0 usunięć
@@ -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))))