X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2FautoMakefile.am;h=84f3c26251999cf80a38203e9e36e6fe931e8d8e;hb=aa98ff87f80830b2f88d710c203dc0cb2f1dc4d5;hp=6d9b324aa1d0abcb395608d7b6a23043588e143c;hpb=191061ee668400324f4505cf498f1ee2d57e4962;p=fs%2Flustre-release.git diff --git a/lustre/autoMakefile.am b/lustre/autoMakefile.am index 6d9b324..84f3c26 100644 --- a/lustre/autoMakefile.am +++ b/lustre/autoMakefile.am @@ -5,46 +5,37 @@ AUTOMAKE_OPTIONS = foreign -SUBDIRS = . include portals ldiskfs lvfs obdclass lov ldlm ptlrpc \ - obdecho osc mdc lmv mds obdfilter ost llite cobd ptlbd smfs cmobd \ - 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 scripts \ + autoconf -EXTRA_DIST = BUGS FDL Rules.in kernel_patches kernel-tests/Makefile \ - README.kernel-source +SERVER_SUBDIRS := ldiskfs smfs snapfs obdfilter ost mds -# these empty rules are needed so that automake doesn't add its own -# recursive rules -etags-recursive: +CLIENT_SUBDIRS := mdc llite -ctags-recursive: +LIBLUSTRE_SUBDIRS := liblustre -tags-recursive: +SUBDIRS := $(ALWAYS_SUBDIRS) -TAGS: - -tags: - rm -f $(top_srcdir)/TAGS - ETAGSF=`etags --version | grep -iq exuberant && \ - echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ - find $(top_srcdir) -name '*.[hc]' | xargs etags $$ETAGSF -a - - rm -f $(top_srcdir)/tags - CTAGSF=`ctags --version | grep -iq exuberant && \ - echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ - find $(top_srcdir) -name '*.[hc]' | xargs ctags $$CTAGSF -a +if SERVER +SUBDIRS += $(SERVER_SUBDIRS) +endif -if MODULES -all-am: modules +if CLIENT +SUBDIRS += $(CLIENT_SUBDIRS) +endif -if !LINUX25 -DEP = dep -dep: .depend +if LIBLUSTRE +if !CLIENT +SUBDIRS += $(CLIENT_SUBDIRS) +endif +SUBDIRS += $(LIBLUSTRE_SUBDIRS) +endif -.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)" +DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) \ + $(LIBLUSTRE_SUBDIRS) -CLEANFILES = .depend -endif +EXTRA_DIST = BUGS FDL Rules.in kernel_patches if LDISKFS LDISKFS = ldiskfs-sources @@ -55,27 +46,17 @@ endif 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) $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o include/config/MARKER $@ - -endif # MODULES +sources: $(LDISKFS) lvfs-sources lustre_build_version all-recursive: 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 - 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 || \ - mv tmpver $(top_builddir)/include/linux/lustre_build_version.h - -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