* Makefile.am (TAGS): modify to fix the problem where you had to

run make twice to get it to succeed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6197 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning 2001-12-04 22:41:38 +00:00
parent 82a2cd436b
commit b63af95544

View File

@ -85,19 +85,11 @@ cscope.out: cscope.files
if GNC_TAGS_FILE
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
TAGS: etags.files $(shell cat etags.files)
etags `cat etags.files`
TAGS:
# make sure etags.files is up to date.
${MAKE} -f Makefile.TAGS etags.files
# now use the contents of etags.files to re-make TAGS if needed.
${MAKE} -f Makefile.TAGS TAGS
else