-SUBDIRS := . ldiskfs
-SOURCES_SUBDIRS := ldiskfs
-DIST_SUBDIRS := ldiskfs
+SUBDIRS = . ldiskfs
+SOURCES_SUBDIRS = ldiskfs
+DIST_SUBDIRS = ldiskfs
include build/autoMakefile.am.toplevel
EXTRA_DIST += kernel_patches
+
+# this only needs to be done if disting stand-alone (i.e. not as a
+# subdir of lustre
+module-dist-hook:
+ if ! grep "AC_INIT(\[Lustre\], \[LUSTRE_VERSION\], \[http:\/\/bugs\.whamcloud\.com\/], \[lustre\])" ../configure.ac; then \
+ if [ -f META ]; then \
+ cp META $(distdir)/META; \
+ fi; \
+ fi