gnucash/Makefile.TAGS
Rob Browning 82a2cd436b * Makefile.TAGS: new file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6196 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-04 22:40:48 +00:00

27 lines
1.1 KiB
Makefile

# -*-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.
# The $(shell find . -type d) dependency seems to be pointless -- it
# always fires. It appears that someone's always touching something.
etags.files: $(shell find . -type d)
find . -path './debian' -prune -o -name '*.[ch]' -print -o -name '*.scm' -print | sort > etags.files.tmp
@if cmp --quiet etags.files etags.files.tmp; \
then \
echo "TAGS file list hasn't changed."; \
rm -f etags.files.tmp; \
else \
echo "TAGS file list has changed."; \
mv etags.files.tmp etags.files; \
fi
# 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.
TAGS: $(shell cat etags.files)
etags `cat etags.files`