From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hitoshi Mitake Subject: Re: [PATCH] trivial: support cscope in Makefile and gitignore Date: Sun, 24 Nov 2013 23:23:02 +0900 Message-ID: <87zjotyj3t.wl%mitake.hitoshi@gmail.com> References: <1383013732-9345-1-git-send-email-mitake.hitoshi@lab.ntt.co.jp> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type; bh=M/vr1T5ofv/+47AxHsrqC7mce1gcK1lbXscUa99rLqE=; b=OioE0x4PD1A32ip/CdGGNRovrgT2Dy3+AkO7xvE2yXiXhCvUtWhjDj2lhCGbuIF6uR yrzfoqPk3Ggjmp9hQlvpgzY4ZjtVF//2Qoj1HWZb1V+fvtz9edH+6Xe9+Qo/Nr+3IShL R/x4+r7oAGRhpINFPxddvpQOA2cEGCs4ECcRQm1jIVtVnt9y2+/mkYZ1yt935yCHHLgL GIwS4PdwKlTEh0mTmBUqKqSxOBoI9BfMWKiNA1kTrAouNP6IeI/vs26ZGJEQbo28P4Ml GAH+tmopTJlP0EKM5Myo0gMwyeUZrmAuzn6bWb7kN++RwyRmCi2vEDlrzxrJ0KOIGzw4 vEpQ== In-Reply-To: <1383013732-9345-1-git-send-email-mitake.hitoshi@lab.ntt.co.jp> Sender: stgt-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Hitoshi Mitake Cc: stgt@vger.kernel.org, mitake.hitoshi@gmail.com At Tue, 29 Oct 2013 11:28:52 +0900, Hitoshi Mitake wrote: > > After applying this patch, "make cscope" can generate cscope files for > tag jump. The generated files are ignored by the .gitignore file. > > Signed-off-by: Hitoshi Mitake > --- > .gitignore | 3 ++- > Makefile | 5 +++++ > 2 files changed, 7 insertions(+), 1 deletion(-) ping? This is a trivial one, but would be useful for tgt developers. Thanks, Hitoshi > > diff --git a/.gitignore b/.gitignore > index ca1c5d3..8c28cb7 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -31,4 +31,5 @@ usr/tgtd > usr/tgtadm > usr/tgtimg > > - > +# cscope files > +cscope.* > diff --git a/Makefile b/Makefile > index b71ad7b..ad1f12f 100644 > --- a/Makefile > +++ b/Makefile > @@ -93,3 +93,8 @@ check32: > check64: override ARCH=-m64 > check64: > CC=$(CHECK_CC_FLAGS) $(MAKE) all > + > +cscope: > + find -name '*.[ch]' > cscope.files > + cscope -bq > + > -- > 1.7.10.4 >