Login
Added tags support.
[gknop/Perl-Critic.git] / Makefile.PL
index e6d2a59..3cba925 100755 (executable)
@@ -68,3 +68,16 @@ WriteMakefile( NAME           => 'Perl::Critic',
                              },
 
 );
+
+sub MY::postamble {
+    return <<'MAKE_FRAG';
+.PHONY: tags
+
+tags:
+       ctags -f tags --recurse --totals \
+               --exclude=blib/ --exclude=t/lib \
+               --exclude=.svn --exclude='*~' \
+               --languages=Perl --langmap=Perl:+.t \
+MAKE_FRAG
+}
+