commit 613678674d9f4db168f0e287eecd726fefd77c39
parent ebe4587d2c89dd974afb76337cdcbad35a997db5
Author: Andres Navarro <canavarro82@gmail.com>
Date: Tue, 20 Dec 2011 04:03:27 -0300
Added a simple mechanism to handle TAGS file for emacs navigation/completion.
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/.hgignore b/.hgignore
@@ -3,3 +3,5 @@ syntax: glob
*.o
*.a
klisp
+TAGS
+
diff --git a/src/Makefile b/src/Makefile
@@ -71,7 +71,7 @@ $(KRN_T): $(KRN_O) $(KRN_A)
$(CC) -o $@ $(MYLDFLAGS) $(KRN_O) $(KRN_A) $(LIBS)
clean:
- $(RM) $(ALL_T) $(ALL_O) kgffi.o
+ $(RM) $(ALL_T) $(ALL_O) kgffi.o TAGS
# XXX this fails if USE_LIBFFI is not defined
depend:
@@ -111,6 +111,9 @@ posix:
"MYCFLAGS=-DKLISP_USE_POSIX -D_POSIX_SOURCE $(if $(USE_LIBFFI),-DKUSE_LIBFFI=1)" \
"MYLIBS=$(if $(USE_LIBFFI), -rdynamic -ldl -lffi)"
+# for use in emacs
+tags:
+ rm -f TAGS; etags --declarations -o TAGS *.[ch]
# list targets that do not create files (but not all makes understand .PHONY)
.PHONY: all default o clean