From db7c818b4de503a24641242ce195a02c2a461c17 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 30 Apr 1993 22:08:46 +0000 Subject: [PATCH] * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES. --- gdb/ChangeLog | 5 +---- gdb/Makefile.in | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 022b0f37db..1eb22bc691 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,6 @@ Fri Apr 30 11:05:42 1993 Jim Kingdon (kingdon@cygnus.com) - * Makefile.in (TAGS): Doc fix. + * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES. Fri Apr 30 10:06:46 1993 Fred Fish (fnf@cygnus.com) @@ -13,9 +13,6 @@ Thu Apr 29 12:03:23 1993 Fred Fish (fnf@cygnus.com) * Makefile.in (make-proto-testsuite.dir): New target to make prototype testsuite tree. - * Makefile.in (TAGS): Remove use of DEPFILES, it may be empty. - In any case, it is a subset of the ALLDEPFILES list, which is - part of SOURCES, which is part of TAGFILES, so it's redundant. * Makefile.in (VERSION): Bump to 4.8.4. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 7d20804a74..620cdc1e3c 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -603,10 +603,16 @@ kdb: $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${CDEPS} # Put the proper machine-specific files first, so M-. on a machine # specific routine gets the one for the correct machine. +# The xyzzy stuff below deals with empty DEPFILES TAGS: ${TAGFILES} etags `find ${srcdir}/config -name $(TM_FILE) -print` \ `find ${srcdir}/config -name ${XM_FILE} -print` \ `find ${srcdir}/config -name ${NAT_FILE} -print` \ + `for i in yzzy ${DEPFILES}; do \ + if [ x$$i != xyzzy ]; then \ + echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \ + fi; \ + done` \ ${TAGFILES} tags: TAGS