1 # Copyright (C) 2001 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
6 AUTOMAKE_OPTIONS = foreign
8 # also update lustre/autoconf/lustre-core.m4 AC_CONFIG_FILES
9 ALWAYS_SUBDIRS := include lvfs obdclass ldlm ptlrpc osc lov obdecho \
10 mgc doc utils tests scripts autoconf contrib
12 SERVER_SUBDIRS := obdfilter ost mds mgs
14 CLIENT_SUBDIRS := mdc llite
16 QUOTA_SUBDIRS := quota
18 LIBLUSTRE_SUBDIRS := liblustre
20 SUBDIRS := $(ALWAYS_SUBDIRS)
23 SUBDIRS += $(SERVER_SUBDIRS)
27 SUBDIRS += $(CLIENT_SUBDIRS)
31 SUBDIRS += $(QUOTA_SUBDIRS)
34 # this needs to be after the client subdirs
37 SUBDIRS += $(CLIENT_SUBDIRS)
39 SUBDIRS += $(LIBLUSTRE_SUBDIRS)
42 DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) \
43 $(LIBLUSTRE_SUBDIRS) $(QUOTA_SUBDIRS)
45 EXTRA_DIST = BUGS FDL kernel_patches
48 $(MAKE) sources -C lvfs
50 $(MAKE) sources -C obdclass
52 sources: $(LDISKFS) lvfs-sources obdclass-sources lustre_build_version
54 all-recursive: lustre_build_version
56 BUILD_VER_H=$(top_builddir)/lustre/include/lustre/lustre_build_version.h
59 perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
60 echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
61 cmp -s $(BUILD_VER_H) tmpver > tmpdiff 2> /dev/null && \
62 $(RM) tmpver tmpdiff || \
63 mv -f tmpver $(BUILD_VER_H)