Browse files

[m0] move tags to separate makefile

  • Loading branch information...
1 parent 818a18e commit e61cf8ffbcf3274ed1fb4e190dd69f7f07c06763 @gerdr gerdr committed Jun 6, 2012
Showing with 35 additions and 34 deletions.
  1. +1 −34 src/m0/c/Makefile
  2. +34 −0 src/m0/c/tags.mk
View
35 src/m0/c/Makefile
@@ -11,37 +11,4 @@ m0-debug : m0.h interp.c mob.c ops.c
clean:
rm -f *.o m0 m0-debug
-tags-emacs: tags.emacs.dummy
- rm -f TAGS
- ctags -e \
- --links=no --totals \
- -R --exclude=blib --exclude=.git \
- --languages=c,perl --langmap=c:+.h,c:+.pmc,c:+.ops \
- -I NOTNULL,NULLOK,ARGIN,ARGMOD,ARGOUT,ARGINOUT,ARGIN_NULLOK,ARGOUT_NULLOK,ARGMOD_NULLOK,ARGFREE,ARGFREE_NOTNULL \
- .
-
-# this works with an old etags (XEmacs 21.5*)
-tags-xemacs: tags.emacs.dummy
- rm -f TAGS
- find . \
- -name \*.c -o -name \*.h -o -name \*.pmc -o -name \*.ops | etags -l c - -o TAGS
-
-tags.emacs.dummy:
-
-# vim ctags
-# this needs exuberant-ctags
-
-tags-vi: tags.vi.dummy
- rm -f tags
- ctags \
- --links=no --totals \
- -R --exclude=blib --exclude=.git \
- --languages=c,perl --langmap=c:+.h,c:+.pmc,c:+.ops \
- -I NOTNULL,NULLOK,ARGIN,ARGMOD,ARGOUT,ARGINOUT,ARGIN_NULLOK,ARGOUT_NULLOK,ARGMOD_NULLOK,ARGFREE,ARGFREE_NOTNULL
-
-tags.vi.dummy:
-
-tags: tags.dummy
- @echo 'There is no "tags" target. You want tags-vi or tags-emacs.'
-
-tags.dummy:
+include tags.mk
View
34 src/m0/c/tags.mk
@@ -0,0 +1,34 @@
+tags-emacs: tags.emacs.dummy
+ rm -f TAGS
+ ctags -e \
+ --links=no --totals \
+ -R --exclude=blib --exclude=.git \
+ --languages=c,perl --langmap=c:+.h,c:+.pmc,c:+.ops \
+ -I NOTNULL,NULLOK,ARGIN,ARGMOD,ARGOUT,ARGINOUT,ARGIN_NULLOK,ARGOUT_NULLOK,ARGMOD_NULLOK,ARGFREE,ARGFREE_NOTNULL \
+ .
+
+# this works with an old etags (XEmacs 21.5*)
+tags-xemacs: tags.emacs.dummy
+ rm -f TAGS
+ find . \
+ -name \*.c -o -name \*.h -o -name \*.pmc -o -name \*.ops | etags -l c - -o TAGS
+
+tags.emacs.dummy:
+
+# vim ctags
+# this needs exuberant-ctags
+
+tags-vi: tags.vi.dummy
+ rm -f tags
+ ctags \
+ --links=no --totals \
+ -R --exclude=blib --exclude=.git \
+ --languages=c,perl --langmap=c:+.h,c:+.pmc,c:+.ops \
+ -I NOTNULL,NULLOK,ARGIN,ARGMOD,ARGOUT,ARGINOUT,ARGIN_NULLOK,ARGOUT_NULLOK,ARGMOD_NULLOK,ARGFREE,ARGFREE_NOTNULL
+
+tags.vi.dummy:
+
+tags: tags.dummy
+ @echo 'There is no "tags" target. You want tags-vi or tags-emacs.'
+
+tags.dummy:

0 comments on commit e61cf8f

Please sign in to comment.