aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-16 19:50:43 -0400
committerRob Austein <sra@hactrn.net>2015-06-16 19:50:43 -0400
commitc4b3c14cee66da31b399fb88766df87c95c464ce (patch)
tree49138de2844619a04ef8e9bc3d6e2336a98678b4
parent1fd31410722c665e68832fa59bdc1a624a4f0bef (diff)
Add tags target to GNUmakefile.
-rw-r--r--.gitignore5
-rw-r--r--GNUmakefile7
2 files changed, 9 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 1671173..e1858fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
*~
-tomsfastmath
-tfm.h
+TAGS
libtfm.a
+tfm.h
+tomsfastmath
diff --git a/GNUmakefile b/GNUmakefile
index c3377cd..533bb42 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -20,7 +20,7 @@ clean:
cd ${REPO}; git clean -dxf
distclean: clean
- rm -rf ${REPO}
+ rm -rf ${REPO} TAGS
${HDR}:
git clone -q ${URL}
@@ -35,3 +35,8 @@ $(notdir ${HDR}): ${HDR}
$(notdir ${LIB}): ${LIB}
ln -f $^ $@
+
+tags: TAGS
+
+TAGS: ${HDR}
+ find ${REPO} -type f -name '*.[ch]' -print | etags -