Whamcloud - gitweb
Be more specific so that other lustre* cruft is not picked up.
[fs/lustre-release.git] / autoMakefile.am
1 include build/autoMakefile.am.toplevel
2
3 CSTK=/tmp/checkstack
4 CSTKO=/tmp/checkstack.orig
5
6 checkstack:
7         [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
8         { for i in lustre/* lnet/* ; do                                      \
9                 MOD=$$i/`basename $$i`;                                      \
10                 if [ $$i = "lustre/llite" ]; then MOD=$$i/lustre; fi;        \
11                 [ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o;              \
12                 [ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
13           done;                                                              \
14           for i in lnet/klnds/*; do                                          \
15                 MOD=$$i/k`basename $$i`;                                     \
16                 [ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o;              \
17                 [ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
18           done } | sort -nr > ${CSTK}
19         [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
20
21 checkstack-update:
22         [ -f ${CSTK} ] && mv -f ${CSTK} ${CSTKO}
23
24 checkstack-clean:
25         rm -f ${CSTK} ${CSTKO}