Whamcloud - gitweb
* Added make target (mkid) to build idutils database
authoreeb <eeb>
Fri, 2 Oct 2009 12:53:31 +0000 (12:53 +0000)
committereeb <eeb>
Fri, 2 Oct 2009 12:53:31 +0000 (12:53 +0000)
* Change cscope/ctags/etags targets to skip ldiskfs/linux-stage
  directory to avoid duplicate symbol matches.

.cvsignore
build/autoMakefile.am.toplevel

index 6ceece6..4a0f8c1 100644 (file)
@@ -15,6 +15,7 @@ tags
 TAGS
 lustre*.tar.gz
 cscope.*
+ID
 autom4te-2.53.cache
 autom4te.cache
 depcomp
index 873911b..4ec9b6b 100644 (file)
@@ -3,6 +3,10 @@
 
 AUTOMAKE_OPTIONS = foreign
 
+FIND_TAG_FILES_CMD = find $(top_srcdir) \
+                    -path $(top_srcdir)/ldiskfs/ldiskfs/linux-stage -prune -false -o\
+                    -type f -name '*.[hc]'
+
 # these empty rules are needed so that automake doesn't add its own
 # recursive rules
 etags-recursive:
@@ -19,21 +23,25 @@ etags:
        $(RM) $(top_srcdir)/TAGS
        ETAGSF=`etags --version | grep -iq exuberant && \
                echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
-       find $(top_srcdir) -name '*.[hc]'|grep -v "\.pc"|xargs etags $$ETAGSF -a
+       $(FIND_TAG_FILES_CMD) | xargs etags $$ETAGSF -a
 
 ctags:
        $(RM) $(top_srcdir)/tags
        CTAGSF=`ctags --version | grep -iq exuberant && \
                echo "-I __initdata,__exitdata,EXPORT_SYMBOL"`; \
-       find $(top_srcdir) -name '*.[hc]'|grep -v "\.pc"|xargs ctags $$CTAGSF -a
+       $(FIND_TAG_FILES_CMD) | xargs ctags $$CTAGSF -a
 
 cscope-recursive:
 
 cscope:
        $(RM) $(top_srcdir)/cscope*.out $(top_srcdir)/cscope.files
-       find $(top_srcdir) -name '*.[hc]' | grep -v "\.pc" > cscope.files
+       $(FIND_TAG_FILES_CMD) > cscope.files
        cscope -bRq
 
+mkid:
+       $(FIND_TAG_FILES_CMD) | xargs mkid
+       
+
 doxygen:  doxygen-api doxygen-ref
 
 doxygen-%: build/doxyfile.%