Whamcloud - gitweb
18efdfa922b06691618c284db7b95421a467b666
[fs/lustre-release.git] / lustre / obdclass / Makefile.mk
1 # Copyright (C) 2001  Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 include $(src)/../portals/Kernelenv
7
8 obj-y += obdclass.o
9 obdclass-objs := class_obd.o debug.o \
10                 genops.o sysctl.o uuid.o lprocfs_status.o lustre_handles.o \
11                 lustre_peer.o statfs_pack.o obdo.o llog_obd.o mea.o \
12                 obd_config.o llog_ioctl.o
13
14 $(obj)/class_obd.o: lustre_build_version
15
16 # XXX I'm sure there's some automake mv-if-different helper for this.
17 .PHONY:
18 lustre_build_version:
19         pwd
20         perl $(src)/../scripts/version_tag.pl $(src)/.. $(obj)/.. > $(obj)/tmpver
21         cmp -s $(src)/../include/linux/lustre_build_version.h $(obj)/tmpver \
22                 2> /dev/null &&                                            \
23                 $(RM) $(obj)/tmpver ||                                            \
24                 mv $(obj)/tmpver $(src)/../include/linux/lustre_build_version.h