summaryrefslogtreecommitdiff
path: root/Makefile.subdir
blob: b4e86913f8c48413fe78a0cd68362c66d8e512c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
subdirs: $(SUBDIRS)
$(SUBDIRS):
	@$(MAKE) -C $@

all: $(subdirs)

SUBDIRS_CLEAN = $(addsuffix .clean,$(SUBDIRS))
clean: $(SUBDIRS_CLEAN)
$(SUBDIRS_CLEAN): %.clean:
	@$(MAKE) -C $* clean

SUBDIRS_INSTALL = $(addsuffix .install,$(SUBDIRS))
install: $(SUBDIRS_INSTALL)
$(SUBDIRS_INSTALL): %.install:
	@$(MAKE) -C $* install

.PHONY: all clean install $(SUBDIRS)