summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Allen <screwtape@froup.com>2007-05-19 20:17:34 +1000
committerYann Dirson <ydirson@altern.org>2008-03-31 15:53:41 +0200
commit99d7c1d5bbf05a544ecf20908b40ffe8540033d4 (patch)
tree10c1cebc914a9cd9aef1976e6195ad31ceffc184
parent4fad63b82746ea571edc2ec1100ad3208cf5af08 (diff)
downloadcvsps-99d7c1d5bbf05a544ecf20908b40ffe8540033d4.tar.gz
Add support for a tags file to the build system.
- tags built with 'make tags' - tags removed with 'make clean' - tags ignored by git
-rw-r--r--.gitignore1
-rw-r--r--Makefile5
2 files changed, 5 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index c862af8..cd04a4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
*.o
cvsps
+tags
diff --git a/Makefile b/Makefile
index 05ca856..94afa3e 100644
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,11 @@ install:
install cvsps $(prefix)/bin
install -m 644 cvsps.1 $(prefix)/share/man/man1
+tags: *.c *.h cbtcommon/*.c cbtcommon/*.h
+ ctags *.c *.h cbtcommon/*.c cbtcommon/*.h
+
clean:
- rm -f cvsps *.o cbtcommon/*.o core
+ rm -f cvsps *.o cbtcommon/*.o core tags
.PHONY: install clean
# DO NOT DELETE