4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 2 only,
8 # as published by the Free Software Foundation.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License version 2 for more details (a copy is included
14 # in the LICENSE file that accompanied this code).
16 # You should have received a copy of the GNU General Public License
17 # version 2 along with this program; If not, see
18 # http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
20 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 # CA 95054 USA or visit www.sun.com if you need additional information or
28 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
29 # Use is subject to license terms.
31 # Copyright (c) 2011, 2012, Intel Corporation.
35 # This file is part of Lustre, http://www.lustre.org/
36 # Lustre is a trademark of Sun Microsystems, Inc.
39 AUTOMAKE_OPTIONS = foreign
41 # also update lustre/autoconf/lustre-core.m4 AC_CONFIG_FILES
42 ALWAYS_SUBDIRS = include obdclass ldlm ptlrpc obdecho \
43 mgc fid fld doc utils tests scripts autoconf contrib conf
45 SERVER_SUBDIRS = ost mgs mdt mdd ofd osd-zfs osd-ldiskfs \
46 quota osp lod target lfsck nodemap
48 CLIENT_SUBDIRS = mdc lmv llite lov osc
50 SUBDIRS := $(ALWAYS_SUBDIRS)
53 SUBDIRS += $(SERVER_SUBDIRS)
57 SUBDIRS += $(CLIENT_SUBDIRS)
60 DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS)
62 EXTRA_DIST = BUGS kernel_patches BUILDING
64 sources: lustre_build_version
66 all-recursive: lustre_build_version
68 BUILD_VER_H=$(top_builddir)/lustre/include/lustre/lustre_build_version.h
71 perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
72 echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
73 cmp -s $(BUILD_VER_H) tmpver > tmpdiff 2> /dev/null && \
74 $(RM) tmpver tmpdiff || \
75 mv -f tmpver $(BUILD_VER_H)