Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Array element access in bash MUST be enclosed with {}.
[fs/lustre-release.git]
/
lustre
/
autoMakefile.am
diff --git
a/lustre/autoMakefile.am
b/lustre/autoMakefile.am
index
9b829bf
..
84f3c26
100644
(file)
--- a/
lustre/autoMakefile.am
+++ b/
lustre/autoMakefile.am
@@
-5,24
+5,38
@@
AUTOMAKE_OPTIONS = foreign
AUTOMAKE_OPTIONS = foreign
-
SUBDIRS = . include portals ldiskfs lvfs obdclass lov ldlm ptlrpc
\
- obdecho osc
mdc mds obdfilter ost llite cobd ptlbd snapfs smf
s \
- liblustre doc utils tests conf scripts
+
ALWAYS_SUBDIRS := include lvfs obdclass lov ldlm sec ptlrpc
\
+ obdecho osc
lmv cobd ptlbd cmobd doc utils tests conf script
s \
+ autoconf
-EXTRA_DIST = BUGS FDL Rules.in kernel_patches kernel-tests/Makefile \
- README.kernel-source
+SERVER_SUBDIRS := ldiskfs smfs snapfs obdfilter ost mds
-if MODULES
-all-am: modules
+CLIENT_SUBDIRS := mdc llite
-if !LINUX25
-DEP = dep
-dep: .depend
+LIBLUSTRE_SUBDIRS := liblustre
-.depend:
- $(MAKE) $(ARCH_UM) -C $(LINUX) -f $(PWD)/kernel-tests/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) -o scripts -o include/config/MARKER _sfdep_$(PWD) _FASTDEP_ALL_SUB_DIRS="$(PWD)"
+SUBDIRS := $(ALWAYS_SUBDIRS)
+
+if SERVER
+SUBDIRS += $(SERVER_SUBDIRS)
+endif
+
+if CLIENT
+SUBDIRS += $(CLIENT_SUBDIRS)
+endif
+
+if LIBLUSTRE
+if !CLIENT
+SUBDIRS += $(CLIENT_SUBDIRS)
+endif
+SUBDIRS += $(LIBLUSTRE_SUBDIRS)
endif
endif
+DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) \
+ $(LIBLUSTRE_SUBDIRS)
+
+EXTRA_DIST = BUGS FDL Rules.in kernel_patches
+
if LDISKFS
LDISKFS = ldiskfs-sources
ldiskfs-sources:
if LDISKFS
LDISKFS = ldiskfs-sources
ldiskfs-sources:
@@
-32,25
+46,17
@@
endif
lvfs-sources:
$(MAKE) sources -C lvfs
lvfs-sources:
$(MAKE) sources -C lvfs
-modules: lustre_build_version $(DEP) $(LDISKFS) lvfs-sources
- $(MAKE) $(ARCH_UM) -C $(LINUX) -f $(PWD)/kernel-tests/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) SUBDIRS=$(PWD) -o tmp_include_depends -o scripts -o include/config/MARKER $@
+sources: $(LDISKFS) lvfs-sources lustre_build_version
+
+all-recursive: lustre_build_version
lustre_build_version:
lustre_build_version:
- perl $(top_builddir)/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
+ perl $(top_builddir)/
lustre/
scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
- cmp -s $(top_builddir)/include/linux/lustre_build_version.h tmpver \
+ cmp -s $(top_builddir)/
lustre/
include/linux/lustre_build_version.h tmpver \
2> /dev/null && \
$(RM) tmpver || \
2> /dev/null && \
$(RM) tmpver || \
- mv tmpver $(top_builddir)/include/linux/lustre_build_version.h
-
-endif # MODULES
-
-dist-hook:
- find $(distdir) -name .deps | xargs rm -rf
- find $(distdir) -name CVS | xargs rm -rf
-
-rpms: dist Makefile
- rpmbuild -ta $(distdir).tar.gz
+ mv tmpver $(top_builddir)/lustre/include/linux/lustre_build_version.h
CSTK=/tmp/checkstack
CSTKO=/tmp/checkstack.orig
CSTK=/tmp/checkstack
CSTKO=/tmp/checkstack.orig