X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2FautoMakefile.am.toplevel;h=096edf5311f3513c65d65130768f3b56ac692d9d;hb=8936ad36dbfca70d29cabbde95ffc91536205d2f;hp=1283decf9a1bb34faebe30d296813ddfb00d48b6;hpb=9daaacb744531f08d67f851e9d1bed00572dddd8;p=fs%2Flustre-release.git diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index 1283dec..096edf5 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -1,7 +1,7 @@ AUTOMAKE_OPTIONS = foreign -SUBDIRS := . build @LIBSYSIO_SUBDIR@ portals lustre -DIST_SUBDIRS := build libsysio portals lustre +SUBDIRS := . build @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ lnet @LUSTRE_PORTALS_SUBDIR@ lustre +DIST_SUBDIRS := build @SNMP_DIST_SUBDIR@ libsysio lnet @LUSTRE_PORTALS_SUBDIR@ lustre EXTRA_DIST := config.h.in @@ -19,19 +19,21 @@ 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 + find $(top_srcdir) -name '*.[hc]' |grep -v linux-stage |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 + find $(top_srcdir) -name '*.[hc]' |grep -v linux-stage |xargs ctags $$CTAGSF -a if MODULES -all-am: modules - all-sources: - $(MAKE) sources -C portals + $(MAKE) sources -C lnet $(MAKE) sources -C lustre + if [ "x@LUSTRE_PORTALS_SUBDIR@" = "xportals" ] ; then $(MAKE) sources -C @LUSTRE_PORTALS_SUBDIR@ ; fi + +if LINUX +all-am: modules if !LINUX25 DEP = dep @@ -44,13 +46,14 @@ dep: .depend _FASTDEP_ALL_SUB_DIRS="$(PWD)" CLEANFILES = .depend -endif +endif # !LINUX25 modules: $(DEP) all-sources $(MAKE) $(ARCH_UM) CC="$(CC)" -C $(LINUX_OBJ) \ -f $(PWD)/build/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) \ $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \ include/config/MARKER $@ +endif # LINUX endif # MODULES @@ -58,5 +61,11 @@ dist-hook: find $(distdir) -name .deps | xargs rm -rf find $(distdir) -name CVS | xargs rm -rf -rpms: dist Makefile +build/lustre.spec: build/lustre.spec.in config.status + ./config.status build/lustre.spec + +rpms: build/lustre.spec dist Makefile rpmbuild -ta $(distdir).tar.gz + +srpm: build/lustre.spec dist Makefile + rpmbuild -ts $(distdir).tar.gz