Whamcloud - gitweb
d7df0bbf09c2af277253eae6ed6e1762de78cdf5
[fs/lustre-release.git] / lustre / obdclass / Makefile.am
1 # FIXME: we need to make it clear that obdclass.o depends on
2 # lustre_build_version, or 'make -j2' breaks!
3 DEFS=
4 MODULE = obdclass
5 modulefs_DATA = lustre_build_version obdclass.o
6 EXTRA_PROGRAMS = obdclass
7 obdclass_SOURCES = debug.c genops.c class_obd.c sysctl.c uuid.c lprocfs_status.c
8 include $(top_srcdir)/Rules
9 lustre_build_version:
10         perl $(top_srcdir)/scripts/version_tag.pl $(top_srcdir) > tmpver
11         diff -u $(top_builddir)/include/linux/lustre_build_version.h tmpver \
12                         2> /dev/null &&\
13                 $(RM) tmpver || \
14                 mv tmpver $(top_builddir)/include/linux/lustre_build_version.h