]> rtime.felk.cvut.cz Git - omk/sssa.git/commitdiff
Fixed cscope target to better cooperate with Emacs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Apr 2009 07:33:30 +0000 (09:33 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Apr 2009 07:33:30 +0000 (09:33 +0200)
Emacs supposes there is cscope.files with the list of files to index.

snippets/sources-list.omk

index f13545131043ceb3c7d372bbb2f47e2ede05aabf..8f3cc4819cd7b9d6fcfed5fe14ec5de07783f26e 100644 (file)
@@ -75,5 +75,6 @@ endif
 
 cscope: $(SOURCES_LIST)
        @$(QUIET_CMD_ECHO) "  CSCOPE  < $(SOURCES_LIST_FN)"
-       $(Q)sed -e '/^#/d' $(SOURCES_LIST)|cscope -b -i-
+       $(Q)sed -e '/^#/d' $(SOURCES_LIST) > cscope.files
+       $(Q)cscope -b -icscope.files
 #FIXME: see doc to -i in cscope(1)