summaryrefslogtreecommitdiff
path: root/Makefile
blob: 52af23eb0d7f470e61cbf7caaa158490f7c2d502 (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 Utils Engine Lua Loader Database

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))))