18 |
INSTALLDIRS = $(SUBDIRS:%=install-%) |
INSTALLDIRS = $(SUBDIRS:%=install-%) |
19 |
CLEANDIRS = $(SUBDIRS:%=clean-%) |
CLEANDIRS = $(SUBDIRS:%=clean-%) |
20 |
|
|
21 |
|
all: $(SUBDIRS) |
22 |
|
|
23 |
|
install: $(INSTALLDIRS) |
24 |
|
|
25 |
|
clean: $(CLEANDIRS) |
26 |
|
|
27 |
$(SUBDIRS): |
$(SUBDIRS): |
28 |
$(MAKE) -C $@ |
$(MAKE) -C $@ |
29 |
|
|
33 |
$(CLEANDIRS): |
$(CLEANDIRS): |
34 |
$(MAKE) -C $(@:clean-%=%) clean |
$(MAKE) -C $(@:clean-%=%) clean |
35 |
|
|
|
subdirs: $(SUBDIRS) |
|
|
|
|
|
all: $(SUBDIRS) |
|
|
|
|
|
install: $(INSTALLDIRS) all |
|
|
|
|
|
clean: $(CLEANDIRS) |
|
36 |
|
|
37 |
.PHONY: subdirs $(SUBDIRS) |
.PHONY: $(SUBDIRS) |
38 |
.PHONY: subdirs $(INSTALLDIRS) |
.PHONY: $(INSTALLDIRS) |
39 |
.PHONY: subdirs $(CLEANDIRS) |
.PHONY: $(CLEANDIRS) |
40 |
.PHONY: all install clean |
.PHONY: all install clean |