1219820Sjeff 2219820SjeffSUBDIRS:= libibcommon libibumad libibmad opensm infiniband-diags 3219820Sjeff 4219820Sjeffall: 5219820Sjeff 6219820Sjeffconfig: 7219820Sjeff $(foreach dir, $(SUBDIRS), \ 8219820Sjeff if [ ! -z "$(force)" -o ! -x $(dir)/configure ] ; then \ 9219820Sjeff ( cd $(dir) && ./autogen.sh && ./configure $(CONFIG_OPTS) ) \ 10219820Sjeff || exit 1 ; \ 11219820Sjeff elif [ ! -e $(dir)/Makefile ] ; then \ 12219820Sjeff ( cd $(dir) && ./configure $(CONFIG_OPTS) ) \ 13219820Sjeff || exit 1 ; \ 14219820Sjeff fi ; ) 15219820Sjeff 16219820Sjeffautomake: force=1 17219820Sjeffautomake: config 18219820Sjeff 19219820Sjeffall install: config 20219820Sjeffall install clean: 21219820Sjeff $(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) $@ && ) echo $@ done 22