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 fid fld doc utils tests scripts autoconf contrib
12 SERVER_SUBDIRS := ldiskfs obdfilter ost mds mgs mdt cmm mdd osd
14 CLIENT_SUBDIRS := mdc lmv 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 LDISKFS = ldiskfs-sources
50 $(MAKE) sources -C ldiskfs
54 $(MAKE) sources -C lvfs
56 $(MAKE) sources -C obdclass
58 sources: $(LDISKFS) lvfs-sources obdclass-sources lustre_build_version
60 all-recursive: lustre_build_version
62 BUILD_VER_H=$(top_builddir)/lustre/include/linux/lustre_build_version.h
65 perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
66 echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
67 cmp -s $(BUILD_VER_H) tmpver > tmpdiff 2> /dev/null && \
68 $(RM) tmpver tmpdiff || \
69 mv -f tmpver $(BUILD_VER_H)