{"thread":{"id":"10166","subject":"[PATCH] makefile: Add a cscope target","startedAt":"2007-10-05T22:33:36Z","lastAt":"2007-10-07T20:45:43Z","messageCount":5,"participants":["Kristof Provost","Frank Lichtenheld","Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"55004","messageId":"20071005223336.GA4556@luggage","threadId":"10166","inReplyTo":null,"subject":"[PATCH] makefile: Add a cscope target","fromName":"Kristof Provost","fromEmail":"kristof@provost-engineering.be","sentAt":"2007-10-05T22:33:36Z","receivedAt":"2007-10-05T22:33:36Z","isPatch":true,"sender":{"key":"kristof@provost-engineering.be","avatar":null},"body":"The current makefile supports ctags but not cscope. Some people prefer\ncscope (I do), so this patch adds a cscope target.\n\nSigned-off-by: Kristof Provost <Kristof@provost-engineering.be>\n\n---\ndiff --git a/Makefile b/Makefile\nindex 8db4dbe..42c9e94 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -947,6 +947,10 @@ tags:\n \t$(RM) tags\n \t$(FIND) . -name '*.[hcS]' -print | xargs ctags -a\n \n+cscope:\n+\t$(RM) cscope*\n+\t$(FIND) . -name '*.hcS]' -print | xargs cscope -b\n+\n ### Detect prefix changes\n TRACK_CFLAGS = $(subst ','\\'',$(ALL_CFLAGS)):\\\n              $(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)\n@@ -1093,7 +1097,7 @@ clean:\n \t\t$(LIB_FILE) $(XDIFF_LIB)\n \t$(RM) $(ALL_PROGRAMS) $(BUILT_INS) git$X\n \t$(RM) $(TEST_PROGRAMS)\n-\t$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags\n+\t$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope*\n \t$(RM) -r autom4te.cache\n \t$(RM) configure config.log config.mak.autogen config.mak.append config.status config.cache\n \t$(RM) -r $(GIT_TARNAME) .doc-tmp-dir\n@@ -1111,7 +1115,7 @@ endif\n \t$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-GUI-VARS\n \n .PHONY: all install clean strip\n-.PHONY: .FORCE-GIT-VERSION-FILE TAGS tags .FORCE-GIT-CFLAGS\n+.PHONY: .FORCE-GIT-VERSION-FILE TAGS tags cscope .FORCE-GIT-CFLAGS \n \n ### Check documentation\n #\n\n\n--\nKristof\n"},{"id":"55007","messageId":"20071006010437.GS31659@planck.djpig.de","threadId":"10166","inReplyTo":"20071005223336.GA4556@luggage","subject":"Re: [PATCH] makefile: Add a cscope target","fromName":"Frank Lichtenheld","fromEmail":"frank@lichtenheld.de","sentAt":"2007-10-06T01:04:37Z","receivedAt":"2007-10-06T01:04:37Z","isPatch":true,"sender":{"key":"frank@lichtenheld.de","avatar":"https://gravatar.com/avatar/b9f1d4b120e138f157c9e480d0818197c474628923786adb98f30017cdb99c3c?d=mp&s=160"},"body":"On Sat, Oct 06, 2007 at 12:33:36AM +0200, Kristof Provost wrote:\n> +cscope:\n> +\t$(RM) cscope*\n> +\t$(FIND) . -name '*.hcS]' -print | xargs cscope -b\n\n\nmissing [\n\nGruesse,\n-- \nFrank Lichtenheld <frank@lichtenheld.de>\nwww: http://www.djpig.de/\n"},{"id":"55010","messageId":"20071006082358.GA2711@steel.home","threadId":"10166","inReplyTo":"20071005223336.GA4556@luggage","subject":"Re: [PATCH] makefile: Add a cscope target","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-10-06T08:23:58Z","receivedAt":"2007-10-06T08:23:58Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Kristof Provost, Sat, Oct 06, 2007 00:33:36 +0200:\n> +cscope:\n> +\t$(RM) cscope*\n\nYou may want to add the cscope* to .gitignore\n"},{"id":"55016","messageId":"20071006142442.GA4635@luggage","threadId":"10166","inReplyTo":"20071006010437.GS31659@planck.djpig.de","subject":"Re: [PATCH] makefile: Add a cscope target","fromName":"Kristof Provost","fromEmail":"kristof@provost-engineering.be","sentAt":"2007-10-06T14:24:42Z","receivedAt":"2007-10-06T14:24:42Z","isPatch":true,"sender":{"key":"kristof@provost-engineering.be","avatar":null},"body":"On 2007-10-06 03:04:37 (+0200), Frank Lichtenheld <frank@lichtenheld.de> wrote:\n> On Sat, Oct 06, 2007 at 12:33:36AM +0200, Kristof Provost wrote:\n> > +cscope:\n> > +\t$(RM) cscope*\n> > +\t$(FIND) . -name '*.hcS]' -print | xargs cscope -b\n> \n> \n> missing [\nWell, that will teach me to post patches after midnight.\n\nHere's a fixed version. I've also added cscope* to the .gitignore file.\nFor some reason tags and TAGS weren't in there either so I've added them\ntoo.\n\nSigned-off-by: Kristof Provost <Kristof@provost-engineering.be>\n\n---\ndiff --git a/.gitignore b/.gitignore\nindex e0b91be..62afef2 100644\n--- a/.gitignore\n+++ b/.gitignore\n@@ -171,3 +171,6 @@ config.status\n config.mak.autogen\n config.mak.append\n configure\n+tags\n+TAGS\n+cscope*\ndiff --git a/Makefile b/Makefile\nindex 8db4dbe..e2790c8 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -947,6 +947,10 @@ tags:\n \t$(RM) tags\n \t$(FIND) . -name '*.[hcS]' -print | xargs ctags -a\n \n+cscope:\n+\t$(RM) cscope*\n+\t$(FIND) . -name '*.[hcS]' -print | xargs cscope -b\n+\n ### Detect prefix changes\n TRACK_CFLAGS = $(subst ','\\'',$(ALL_CFLAGS)):\\\n              $(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)\n@@ -1093,7 +1097,7 @@ clean:\n \t\t$(LIB_FILE) $(XDIFF_LIB)\n \t$(RM) $(ALL_PROGRAMS) $(BUILT_INS) git$X\n \t$(RM) $(TEST_PROGRAMS)\n-\t$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags\n+\t$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope*\n \t$(RM) -r autom4te.cache\n \t$(RM) configure config.log config.mak.autogen config.mak.append config.status config.cache\n \t$(RM) -r $(GIT_TARNAME) .doc-tmp-dir\n@@ -1111,7 +1115,7 @@ endif\n \t$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-GUI-VARS\n \n .PHONY: all install clean strip\n-.PHONY: .FORCE-GIT-VERSION-FILE TAGS tags .FORCE-GIT-CFLAGS\n+.PHONY: .FORCE-GIT-VERSION-FILE TAGS tags cscope .FORCE-GIT-CFLAGS \n \n ### Check documentation\n #\n\n\n--\nKristof\n \n"},{"id":"55084","messageId":"20071007204543.GC4635@luggage","threadId":"10166","inReplyTo":"20071006142442.GA4635@luggage","subject":"[PATCH] makefile: Add a cscope target","fromName":"Kristof Provost","fromEmail":"kristof@provost-engineering.be","sentAt":"2007-10-07T20:45:43Z","receivedAt":"2007-10-07T20:45:43Z","isPatch":true,"sender":{"key":"kristof@provost-engineering.be","avatar":null},"body":"The current makefile supports ctags but not cscope. Some people prefer\ncscope (I do), so this patch adds a cscope target.\n\nSigned-off-by: Kristof Provost <Kristof@provost-engineering.be>\n\n---\nThis version of the patch includes the fix for the missing [ Frank spotted,\nand adds 'cscope*' to the .gitignore list as Alex suggested. \nWhile I did that I noticed that 'tags' and 'TAGS' were also missing.\n\nIt's also in the (hopefully) right format. Thank to Johannes Schindelin\nfor pointing out my mistakes.\n\n .gitignore |    3 +++\n Makefile   |    8 ++++++--\n 2 files changed, 9 insertions(+), 2 deletions(-)\n\ndiff --git a/.gitignore b/.gitignore\nindex e0b91be..62afef2 100644\n--- a/.gitignore\n+++ b/.gitignore\n@@ -171,3 +171,6 @@ config.status\n config.mak.autogen\n config.mak.append\n configure\n+tags\n+TAGS\n+cscope*\ndiff --git a/Makefile b/Makefile\nindex 8db4dbe..e2790c8 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -947,6 +947,10 @@ tags:\n \t$(RM) tags\n \t$(FIND) . -name '*.[hcS]' -print | xargs ctags -a\n \n+cscope:\n+\t$(RM) cscope*\n+\t$(FIND) . -name '*.[hcS]' -print | xargs cscope -b\n+\n ### Detect prefix changes\n TRACK_CFLAGS = $(subst ','\\'',$(ALL_CFLAGS)):\\\n              $(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)\n@@ -1093,7 +1097,7 @@ clean:\n \t\t$(LIB_FILE) $(XDIFF_LIB)\n \t$(RM) $(ALL_PROGRAMS) $(BUILT_INS) git$X\n \t$(RM) $(TEST_PROGRAMS)\n-\t$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags\n+\t$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope*\n \t$(RM) -r autom4te.cache\n \t$(RM) configure config.log config.mak.autogen config.mak.append config.status config.cache\n \t$(RM) -r $(GIT_TARNAME) .doc-tmp-dir\n@@ -1111,7 +1115,7 @@ endif\n \t$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-GUI-VARS\n \n .PHONY: all install clean strip\n-.PHONY: .FORCE-GIT-VERSION-FILE TAGS tags .FORCE-GIT-CFLAGS\n+.PHONY: .FORCE-GIT-VERSION-FILE TAGS tags cscope .FORCE-GIT-CFLAGS \n \n ### Check documentation\n #\n-- \n1.5.3.4.207.g1aae\n"}]}