summaryrefslogtreecommitdiff
path: root/Makefile
blob: b7e3e1e0c0a73f432b35b63800617b83b738e478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DIRS=externals Database Cpu Engine Lua Loader Utils

all: $(DIRS)

doc:

clean: clean-dirs
	rm -rf doc

doc: doxygen.conf
	make -p doc
	doxygen doxygen.conf

clean-dirs:
	for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done

.PHONY: $(DIRS) doc clean

define DIR_template
$(1):
	$$(MAKE) -C $$@
endef

$(foreach dir, $(DIRS), $(eval $(call DIR_template, $(dir))))