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 lustre-iokit @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/*
24 @SYMVERFILE@: @LDISKFS_DIR@/@SYMVERFILE@
26 -grep -v ldiskfs @SYMVERFILE@ > @SYMVERFILE@.old
27 cat @SYMVERFILE@.old @LDISKFS_DIR@/@SYMVERFILE@ > @SYMVERFILE@
32 CSTKO=/tmp/checkstack.orig
35 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
36 { for MOD in $$(find . -name "*.ko"); do \
37 objdump -d $$MOD | perl build/checkstack.pl; \
38 done } | grep -v " bug " | sort -nr | uniq > ${CSTK}
39 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
42 [ -f ${CSTK} ] && mv -f ${CSTK} ${CSTKO}
45 rm -f ${CSTK} ${CSTKO}
48 if [ -d CVS -o -d .git ]; then \
49 perl lustre/scripts/make_META.pl > $(distdir)/META; \
50 cp $(distdir)/META $(distdir)/ldiskfs/META; \
51 elif [ -f META ]; then \
52 cp META $(distdir)/META; \
53 cp $(distdir)/META $(distdir)/ldiskfs/META; \
55 echo -e "I have no idea how to create a META file in $(distdir).\nPlease file a bug at http://bugzilla.lustre.org/"; \
58 if [ -d .git ]; then \
59 build/extract_patches $(distdir); \
60 if grep -e "^--- .*\/autoconf" -e "^--- .*\/Makefile\.am" -e ".*\/configure\.ac" -e ".*\/configure\.in" $(distdir)/debian/patches/*; then \
61 cp build/autogen.sh $(distdir)/build; \
62 cp libsysio/autogen.sh $(distdir)/libsysio; \
63 cp lustre-iokit/autogen.sh $(distdir)/lustre-iokit; \
66 diff -urN empty $(distdir)/debian > debian.diff; \
67 rm -rf $(distdir)/debian; \