From 13e720f15eedbe527f79c957943e9b0b05245da5 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 8 Jun 2009 17:20:56 +0200
Subject: [PATCH] A small makefile rule to create a TAGS file
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This helps emacs users ☺

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 Makefile.am | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index d27fd141c..bfb58624d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -375,4 +375,11 @@ apidoc:
 		rm -rf $$TMPDIR ; \
 	}
 
+.PHONY: TAGS
+TAGS:
+	rm -f TAGS
+	find . -path './lib/*.py' -o -path 'scripts/gnt-*' -o \
+	  -path 'daemons/ganeti-*' -o -path 'tools/*' | \
+	  etags -
+
 # vim: set noet :
-- 
GitLab