X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2FautoMakefile.am.toplevel;h=3f4e23504b7cb66764f0b9a88301838ba190246c;hb=76692373bcaa0650e97597b6fc5a5e762dd4661f;hp=56bb2dc2a4f793f68f6588c338eba42c014c74fc;hpb=43aa8147c9a7666aae22d97514c86efdd054de58;p=fs%2Flustre-release.git diff --git a/build/autoMakefile.am.toplevel b/build/autoMakefile.am.toplevel index 56bb2dc..3f4e235 100644 --- a/build/autoMakefile.am.toplevel +++ b/build/autoMakefile.am.toplevel @@ -11,19 +11,29 @@ ctags-recursive: tags-recursive: -TAGS: +TAGS: etags -tags: - rm -f $(top_srcdir)/TAGS +tags: ctags etags + +etags: + $(RM) $(top_srcdir)/TAGS ETAGSF=`etags --version | grep -iq exuberant && \ echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs etags $$ETAGSF -a - rm -f $(top_srcdir)/tags +ctags: + $(RM) $(top_srcdir)/tags CTAGSF=`ctags --version | grep -iq exuberant && \ echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \ find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' |xargs ctags $$CTAGSF -a +cscope-recursive: + +cscope: + $(RM) $(top_srcdir)/cscope*.out $(top_srcdir)/cscope.files + find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' > cscope.files + cscope -bRq + if MODULES sources: all-sources @@ -59,12 +69,16 @@ endif # LINUX endif # MODULES dist-hook: - rm -f $(distdir)/ldiskfs/*.spec - rm -f $(distdir)/lustre-iokit/*.spec + $(RM) $(distdir)/ldiskfs/*.spec + $(RM) $(distdir)/lustre-iokit/*.spec find $(distdir) -name .deps -o \ -name CVS -o \ -name .svn -o \ + -name .git -o \ -name .#* | xargs rm -rf + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + module-dist-hook EXTRA_DIST = @PACKAGE_TARNAME@.spec \ build/Makefile build/autoMakefile.am.toplevel build/lbuild \ @@ -89,6 +103,7 @@ rpms: for subdir in $(RPM_SUBDIRS) ; do \ echo "Making rpms in $$subdir"; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) rpms); \ + echo "Finished rpms in $$subdir"; \ done; \ $(MAKE) $(AM_MAKEFLAGS) rpms-real @@ -96,6 +111,7 @@ srpm: for subdir in $(RPM_SUBDIRS) ; do \ echo "Making srpm in $$subdir"; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) srpm); \ + echo "Finished srpms in $$subdir"; \ done; \ $(MAKE) $(AM_MAKEFLAGS) srpm-real