From b63af95544a09de2601f31c078f0a3c77675acbc Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Tue, 4 Dec 2001 22:41:38 +0000 Subject: [PATCH] * 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 --- Makefile.am | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Makefile.am b/Makefile.am index e991d69c36..9722d0a812 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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