Skip to content

Commit a301904

Browse files
committed
Add very basic Makefile to run all tests
Run all write.C and read.C macros in sequence, no support for parallelism yet.
1 parent 997c849 commit a301904

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Makefile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ROOT_EXE := $(shell which root.exe)
2+
ifeq ($(ROOT_EXE),)
3+
$(error Could not find root.exe)
4+
endif
5+
6+
.PHONY: all
7+
all:
8+
$(MAKE) write
9+
$(MAKE) read
10+
11+
# This assumes there is no whitespace in any of the paths...
12+
WRITE_C := $(sort $(shell find . -name write.C))
13+
READ_C := $(sort $(shell find . -name read.C))
14+
15+
.PHONY: write
16+
write:
17+
@$(foreach c,$(WRITE_C),$(ROOT_EXE) -q -l $(c) &&) true
18+
19+
.PHONY: read
20+
read:
21+
@$(foreach c,$(READ_C),$(ROOT_EXE) -q -l $(c) &&) true

0 commit comments

Comments
 (0)