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