From 22c8f8adc1e2bf16e85aee1b4286dd45222238bf Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Fri, 14 Sep 2007 20:22:54 -0400 Subject: [PATCH] added make tags rule --- .gitignore | 3 +++ Makefile | 21 +++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4c5f88a..1c6aa22 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *~ .*.swp +cscope.files +cscope.out +tags diff --git a/Makefile b/Makefile index d5fa686..fb5a03a 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,25 @@ -.PHONY: all luaixp clean install -all: luaixp +.PHONY: all luaixp clean tags install +all: luaixp luaeventloop -luaixp: - ${MAKE} -C luaixp +luaixp luaeventloop: + ${MAKE} -C $@ clean: -rm *~ -${MAKE} -C luaixp clean + -${MAKE} -C luaeventloop clean + + +cscope.files:: + find . -name '*.[ch]' -o -name '*.lua' | grep -v -e CVS -e SCCS > cscope.files + +cscope.out: cscope.files + -cscope -P`pwd` -b + +tags: cscope.out + rm -f tags + xargs -n 50 ctags -a < cscope.files + install: ifeq ($(shell pwd),$(wildcard ~/.wmii-3.5)) -- 2.11.4.GIT