2001-12-04 16:40:48 -06:00
|
|
|
# -*-Makefile-*-
|
|
|
|
|
|
|
|
# These are in a separate file because we need to do one, and then the
|
|
|
|
# other and we need to only consider the files listed inside
|
|
|
|
# etags.files as valid dependencies *after* we've updated etags.files.
|
|
|
|
|
|
|
|
# i.e. TAGS: etags.files $(shell cat etags.files) doesn't work right
|
|
|
|
# because etags.files contents are expanded before it's re-generated.
|
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
etags.files: $(shell find . -mindepth 1 -type d ! -name CVS ! -path "*/.*")
|
|
|
|
find . -path '*/.*' -prune -o \( -name '*.[ch]' -o -name '*.scm' \) \
|
|
|
|
-print | sort > etags.files.tmp
|
|
|
|
cmp -s etags.files etags.files.tmp || cp etags.files.tmp etags.files
|
|
|
|
rm -f etags.files.tmp
|
|
|
|
touch etags.files
|
2001-12-04 16:40:48 -06:00
|
|
|
|
|
|
|
# we don't need an etags.files dep here b/c you always call this after
|
|
|
|
# re-generating etags.files if needed from the top-level Makefile.am.
|
2005-11-01 21:32:36 -06:00
|
|
|
TAGS: $(shell cat etags.files)
|
2006-05-28 09:34:50 -05:00
|
|
|
if [ -f TAGS ]; then rm TAGS; fi
|
2006-05-14 17:56:07 -05:00
|
|
|
cat etags.files | xargs -n 200 etags --append
|
2002-11-30 02:59:19 -06:00
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
tags: $(shell cat etags.files)
|
2006-05-28 09:34:50 -05:00
|
|
|
if [ -f TAGS ]; then rm tags; fi
|
2006-05-14 17:56:07 -05:00
|
|
|
cat etags.files | xargs -n 200 ctags --append
|