DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS)
EXTRA_DIST = BUGS kernel_patches BUILDING
-
-sources: lustre_build_version
-
-all-recursive: lustre_build_version
-
-BUILD_VER_H=$(top_builddir)/lustre/include/lustre/lustre_build_version.h
-
-lustre_build_version:
- echo -n "#define BUILD_VERSION \"" > tmpver
- cat $(top_builddir)/LUSTRE-VERSION-FILE | tr -d '\n' | \
- sed -e 's/^LUSTRE_VERSION = //' >> tmpver
- echo "\"" >> tmpver
- cmp -s $(BUILD_VER_H) tmpver > tmpdiff 2> /dev/null && \
- $(RM) tmpver tmpdiff || \
- mv -f tmpver $(BUILD_VER_H)