Makefile 612 B

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