# Copyright (C) 2001 Cluster File Systems, Inc. # # This code is issued under the GNU General Public License. # See the file COPYING in this distribution AUTOMAKE_OPTIONS = foreign # also update lustre/autoconf/lustre-core.m4 AC_CONFIG_FILES ALWAYS_SUBDIRS := include lvfs obdclass ldlm ptlrpc osc lov obdecho \ mgc doc utils tests scripts autoconf contrib SERVER_SUBDIRS := ldiskfs ldiskfs2 obdfilter ost mds mgs CLIENT_SUBDIRS := mdc llite QUOTA_SUBDIRS := quota LIBLUSTRE_SUBDIRS := liblustre SUBDIRS := $(ALWAYS_SUBDIRS) if SERVER SUBDIRS += $(SERVER_SUBDIRS) endif if CLIENT SUBDIRS += $(CLIENT_SUBDIRS) endif if QUOTA SUBDIRS += $(QUOTA_SUBDIRS) endif # this needs to be after the client subdirs if LIBLUSTRE if !CLIENT SUBDIRS += $(CLIENT_SUBDIRS) endif SUBDIRS += $(LIBLUSTRE_SUBDIRS) endif DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) \ $(LIBLUSTRE_SUBDIRS) $(QUOTA_SUBDIRS) EXTRA_DIST = BUGS FDL kernel_patches if LDISKFS LDISKFS = ldiskfs-sources ldiskfs2-sources ldiskfs-sources: $(MAKE) sources -C ldiskfs ldiskfs2-sources: $(MAKE) sources -C ldiskfs2 endif lvfs-sources: $(MAKE) sources -C lvfs obdclass-sources: $(MAKE) sources -C obdclass sources: $(LDISKFS) lvfs-sources obdclass-sources lustre_build_version all-recursive: lustre_build_version BUILD_VER_H=$(top_builddir)/lustre/include/linux/lustre_build_version.h lustre_build_version: perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver cmp -s $(BUILD_VER_H) tmpver > tmpdiff 2> /dev/null && \ $(RM) tmpver tmpdiff || \ mv -f tmpver $(BUILD_VER_H)