From patchwork Fri Jan 11 10:11:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 10757611 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53AC7159A for ; Fri, 11 Jan 2019 10:11:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4373229A2E for ; Fri, 11 Jan 2019 10:11:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 368E829A5C; Fri, 11 Jan 2019 10:11:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE7B429A2E for ; Fri, 11 Jan 2019 10:11:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731641AbfAKKLi (ORCPT ); Fri, 11 Jan 2019 05:11:38 -0500 Received: from mx2.suse.de ([195.135.220.15]:54122 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727653AbfAKKLi (ORCPT ); Fri, 11 Jan 2019 05:11:38 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 27ABDAFD8 for ; Fri, 11 Jan 2019 10:11:37 +0000 (UTC) From: Johannes Thumshirn To: David Sterba Cc: Linux BTRFS Mailinglist , Johannes Thumshirn Subject: [PATCH] btrfs-progs: provide etags make target Date: Fri, 11 Jan 2019 11:11:27 +0100 Message-Id: <20190111101127.15448-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide an 'etags' make target to create tags in the Emacs etags format, similar to the 'tags' target for VIM's ctags. Signed-off-by: Johannes Thumshirn --- .gitignore | 1 + Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 82620f3cf603..c8a8bb702c9e 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,7 @@ /cscope.in.out /cscope.po.out .clang_complete +/TAGS /Documentation/Makefile /Documentation/*.html diff --git a/Makefile b/Makefile index ee1fc13992df..3134a6379ce5 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ $(error Makefile.inc not generated, please configure first) endif TAGS_CMD := ctags +ETAGS_CMD := etags CSCOPE_CMD := cscope -u -b -c -q include Makefile.extrawarn @@ -597,6 +598,12 @@ tags: FORCE check/*.[ch] kernel-lib/*.[ch] kernel-shared/*.[ch] \ libbtrfsutil/*.[ch] +etags: FORCE + @echo " [ETAGS] $(ETAGS_CMD)" + $(Q)$(ETAGS_CMD) *.[ch] image/*.[ch] convert/*.[ch] mkfs/*.[ch] \ + check/*.[ch] kernel-lib/*.[ch] kernel-shared/*.[ch] \ + libbtrfsutil/*.[ch] + cscope: FORCE @echo " [CSCOPE] $(CSCOPE_CMD)" $(Q)ls -1 *.[ch] image/*.[ch] convert/*.[ch] mkfs/*.[ch] check/*.[ch] \ @@ -633,7 +640,7 @@ clean-gen: @echo "Cleaning Generated Files" $(Q)$(RM) -rf -- version.h config.status config.cache config.log \ configure.lineno config.status.lineno Makefile.inc \ - Documentation/Makefile tags \ + Documentation/Makefile tags TAGS \ cscope.files cscope.out cscope.in.out cscope.po.out \ config.log config.h config.h.in~ aclocal.m4 \ configure autom4te.cache/ config/