freebsd-nq/contrib/ofed/management/Makefile
2011-03-21 09:58:24 +00:00

22 lines
513 B
Makefile

SUBDIRS:= libibcommon libibumad libibmad opensm infiniband-diags
all:
config:
$(foreach dir, $(SUBDIRS), \
if [ ! -z "$(force)" -o ! -x $(dir)/configure ] ; then \
( cd $(dir) && ./autogen.sh && ./configure $(CONFIG_OPTS) ) \
|| exit 1 ; \
elif [ ! -e $(dir)/Makefile ] ; then \
( cd $(dir) && ./configure $(CONFIG_OPTS) ) \
|| exit 1 ; \
fi ; )
automake: force=1
automake: config
all install: config
all install clean:
$(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) $@ && ) echo $@ done