1 SUBDIRS := @LDISKFS_SUBDIR@ @SPL_SUBDIR@ @ZFS_SUBDIR@ . @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ @LUSTREIOKIT_SUBDIR@ @LIBCFS_SUBDIR@ lnet lustre
2 DIST_SUBDIRS := @SNMP_DIST_SUBDIR@ libsysio ldiskfs @LUSTREIOKIT_SUBDIR@ @LIBCFS_SUBDIR@ lnet lustre
3 SOURCES_SUBDIRS := @LDISKFS_SUBDIR@ @LIBCFS_SUBDIR@ lnet lustre
4 RPM_SUBDIRS := @LDISKFS_SUBDIR@ @LUSTREIOKIT_SUBDIR@
7 EXTRA_SOURCES := @SYMVERFILE@
11 @TESTS_TRUE@BUILD_TESTS = true
12 @TESTS_FALSE@BUILD_TESTS = false
14 include build/autoMakefile.am.toplevel
16 EXTRA_DIST += config.h.in
19 EXTRA_DIST += debian/control.modules.in debian/control.main \
20 debian/linux-patch-lustre.kpatches \
21 debian/lustre-utils.examples debian/copyright debian/source \
22 debian/source/format debian/lustre-source.docs \
23 debian/lustre-utils.docs debian/lustre-utils.manpages \
24 debian/lustre-client-modules.install debian/README.Debian \
25 debian/.gitignore debian/linux-patch-lustre.dirs \
26 debian/linux-patch-lustre.unpatch debian/lustre-dev.install \
27 debian/lustre-source.dirs debian/liblustre.install debian/rules \
28 debian/lustre-dev.dirs debian/linux-patch-lustre.apply \
29 debian/control debian/changelog debian/lustre-tests.install \
30 debian/lustre-utils.install
35 @SYMVERFILE@: @LDISKFS_DIR@/@SYMVERFILE@
37 -grep -v ldiskfs @SYMVERFILE@ > @SYMVERFILE@.old
38 cat @SYMVERFILE@.old @LDISKFS_DIR@/@SYMVERFILE@ > @SYMVERFILE@
43 CSTKO=/tmp/checkstack.orig
46 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
47 { for MOD in $$(find . -name "*.ko"); do \
48 objdump -d $$MOD | perl build/checkstack.pl; \
49 done } | grep -v " bug " | sort -nr | uniq > ${CSTK}
50 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
53 [ -f ${CSTK} ] && mv -f ${CSTK} ${CSTKO}
56 rm -f ${CSTK} ${CSTKO}
59 if [ -d CVS -o -d .git ]; then \
60 perl lustre/scripts/make_META.pl > $(distdir)/META; \
61 cp $(distdir)/META $(distdir)/ldiskfs/META; \
62 elif [ -f META ]; then \
63 cp META $(distdir)/META; \
64 cp $(distdir)/META $(distdir)/ldiskfs/META; \
66 echo -e "I have no idea how to create a META file in $(distdir).\nPlease file a bug at http://bugzilla.lustre.org/"; \
69 if [ -d .git ]; then \
70 build/extract_patches $(distdir); \
71 if grep -e "^--- .*\/autoconf" -e "^--- .*\/Makefile\.am" -e ".*\/configure\.ac" -e ".*\/configure\.in" $(distdir)/debian/patches/*; then \
72 cp build/autogen.sh $(distdir)/build; \
73 cp libsysio/autogen.sh $(distdir)/libsysio; \
74 cp lustre-iokit/autogen.sh $(distdir)/lustre-iokit; \
77 diff -urN empty $(distdir)/debian > debian.diff; \
78 rm -rf $(distdir)/debian; \