| 1 | # $Id$ |
| 2 | # |
| 3 | # libs makefile |
| 4 | # |
| 5 | # This makefile multiplexes the original goal to all the libraries listed in |
| 6 | # SUBDIRS. |
| 7 | # |
| 8 | |
| 9 | |
| 10 | #SUBDIRS=binrpc cds xcap presence shm_regex |
| 11 | |
| 12 | SUBDIRS=$(filter-out doc $(lib_exclude), $(strip \ |
| 13 | $(patsubst %/Makefile,%,$(wildcard */Makefile)))) |
| 14 | |
| 15 | .PHONY: subdirs $(SUBDIRS) |
| 16 | |
| 17 | # clean install tags proper |
| 18 | |
| 19 | |
| 20 | # we need sub_goals without 'all' target |
| 21 | sub_goals = $(patsubst all,,$(MAKECMDGOALS)) |
| 22 | |
| 23 | subdirs: $(SUBDIRS) |
| 24 | |
| 25 | $(SUBDIRS): |
| 26 | -@echo "Making $(sub_goals) in $@" ; $(MAKE) $(sub_goals) -C $@ |
| 27 | |
| 28 | COREPATH=.. |
| 29 | include ../Makefile.targets |
| 30 | |
| 31 | all: subdirs |
| 32 | |
| 33 | $(clean_targets): subdirs |
| 34 | |
| 35 | install: subdirs |
| 36 |