summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2b1058b2e134fce3ea065322f1298deb5d1ceae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SUBDIRS := 3rdparty doc lib plugins src

export topdir := $(PWD)

all: all-recursive

clean: clean-recursive

doc:
	$(MAKE) -C doc $@

install: install-recursive

.PHONY: doc

recursive=all-recursive clean-recursive install-recursive

$(recursive):
	@target=`echo $@ | sed s/-recursive//` ; \
	for subdir in $(SUBDIRS); do \
		echo "Making $$target in $$subdir" ; \
		$(MAKE) -C $$subdir $$target; \
	done