Skip to contentSkip to conversation

dmraid Makefile.in

PATCH [email protected] 1 participant 1 message Jul 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: dmraid
Changes by: [email protected] 2010-07-13 20:23:33

Modified files:
. : Makefile.in

Log message:
Add make tags target

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/Makefile.in.diff?cvsroot=dm&r1=1.3&r2=1.4

Makefile.in +10 -1
@@ -10,7 +10,7 @@
 SUBDIRS = include lib man tools
 
 DISTCLEAN_TARGETS = autom4te.cache make.tmpl core cscope.out \
- config.cache config.log config.status
+ config.cache config.log config.status tags
 
 all: tools
 
@@ -23,3 +23,12 @@
 
 srpm:
 	rpmbuild -bs dmraid.spec
+
+ifneq ($(shell which ctags),)
+.PHONY: tags
+all: tags
+tags:
+	$(RM) -f tags
+	find $(top_srcdir) -type f \( -name '*.c' -o -name '*.h' \) | xargs ctags -a
+endif
+