]>
Commit | Line | Data |
---|---|---|
30fdf114 LG |
1 | |
2 | all: subdirs | |
3 | ||
4 | LANGUAGES = C Python | |
5 | ||
6 | SOURCE_SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES))) | |
7 | SUBDIRS := $(SOURCE_SUBDIRS) Tests | |
8 | CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS))) | |
9 | ||
10 | .PHONY: subdirs $(SUBDIRS) | |
11 | subdirs: $(SUBDIRS) | |
12 | $(SUBDIRS): | |
13 | $(MAKE) -C $@ | |
14 | ||
15 | .PHONY: $(CLEAN_SUBDIRS) | |
16 | $(CLEAN_SUBDIRS): | |
17 | -$(MAKE) -C $(@:-clean=) clean | |
18 | ||
19 | clean: $(CLEAN_SUBDIRS) | |
20 | ||
21 | test: | |
22 | @$(MAKE) -C Tests | |
23 |