Whamcloud - gitweb
b=22040 use df POSIX output format
[fs/lustre-release.git] / autoMakefile.am
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@
5 if LDISKFS_ENABLED
6 if !LDISKFS_IN_KERNEL
7 EXTRA_SOURCES := @SYMVERFILE@
8 endif
9 endif
10
11 @TESTS_TRUE@BUILD_TESTS = true
12 @TESTS_FALSE@BUILD_TESTS = false
13
14 include build/autoMakefile.am.toplevel
15
16 EXTRA_DIST += config.h.in debian/*
17
18 if LDISKFS_ENABLED
19 if !LDISKFS_IN_KERNEL
20 @SYMVERFILE@: @LDISKFS_DIR@/@SYMVERFILE@
21         touch @SYMVERFILE@
22         -grep -v ldiskfs @SYMVERFILE@ > @SYMVERFILE@.old
23         cat @SYMVERFILE@.old @LDISKFS_DIR@/@SYMVERFILE@ > @SYMVERFILE@
24 endif
25 endif
26
27 CSTK=/tmp/checkstack
28 CSTKO=/tmp/checkstack.orig
29
30 checkstack:
31         [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
32         { for MOD in $$(find . -name "*.ko"); do                             \
33                 objdump -d $$MOD | perl build/checkstack.pl;                 \
34           done } | grep -v " bug " | sort -nr | uniq > ${CSTK}
35         [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
36
37 checkstack-update:
38         [ -f ${CSTK} ] && mv -f ${CSTK} ${CSTKO}
39
40 checkstack-clean:
41         rm -f ${CSTK} ${CSTKO}
42
43 module-dist-hook:
44         if [ -d CVS -o -d .git ]; then \
45             perl lustre/scripts/tree_status.pl > $(distdir)/tree_status; \
46         elif [ -f tree_status ]; then \
47             cp tree_status $(distdir)/tree_status; \
48         else \
49             echo -e "I have no idea how to create a tree_status file in $(distdir).\nPlease file a bug at http://bugzilla.lustre.org/"; \
50         fi