-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
29 lines (18 loc) · 883 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Top level makefile
# make all will recursively make specified targets in each subject directory.
# A link to this makefile should reside in $(PROJECT_DIR)/subjects/sessionN
# directory.
# This sessionN directory is also assumed to contain links to multiple
# $(PROJECT_DIR)/subjects/SubjectID/sessionN directories, so that the
# "SUBJECTS=$(wildcard..." statement will resolve to a list of sessionN
# directories from each subject.
# Each of these sessionN directories will contain a link to
# $(PROJECT_DIR)/subjects/makefile_subject, which is called recursively
# from here to make specified targets in each SubjectID/sessionN.
# In this context, "specified targets" means targets passed to make from the
# command line using the "TARGET=..." argument
SUBJECTS=$(wildcard test.*)
.PHONY: all $(SUBJECTS)
all: $(SUBJECTS)
$(SUBJECTS):
$(MAKE) --directory=$@ $(TARGET)