top_builddir = .
top_srcdir = @top_srcdir@
srcdir = @srcdir@

include $(top_srcdir)/makes/var.mk

SUBDIRS = \
	doc \
	man \
	include/gfarm \
	lib \
	server \
	gftool \
	util/ptool \
	util/ganglia \
	util/gfservice \
	util/gfruntest \
	systest \
	nls \
	bench/gfperf \
	bench/gfiops \
	bench/gfcreate-test \
	regress/lib/libgfarm/gfarm/gfs_pio_test \
	pkgconfig \
	@linuxkernel_targets@

#	`[ -d $(srcdir)/ns ] && echo ns` \
#	gfptool \
#	util/gfront \
#	bench/thput-gfpio

all:

include $(top_srcdir)/makes/subdir.mk

post-distclean-hook:
	-rm -rf autom4te.cache
	rm -f config.log config.status config.cache libtool \
		$(INC_BUILDDIR)/gfarm_config.h \
		Makefile makes/config.mk makes/install-doc \
		makes/build-script \
		gftool/config-gfarm/config-gfarm \
		gftool/config-gfarm/config-gfarm-update \
		gftool/config-gfarm/config-gfsd \
		gftool/gfdump/gfdump.postgresql \
		package/solaris/gfmd package/solaris/gfsd \
		pkgconfig/gfarm.pc
