From: Eric Bavier <bav...@member.fsf.org>

* Makefile.am (clean-go): Use wildcards instead of a list of files.
---
 Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 165dfe9..36d1d78 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -204,9 +204,10 @@ srfi/srfi-37.scm: srfi/srfi-37.scm.in
 
 endif INSTALL_SRFI_37
 
-# Handy way to remove the .go files without removing all the rest.
+# Handy way to remove the .go files without removing all the rest.  Use
+# wildcards so that any stale .go files from renamed modules are also cleaned.
 clean-go:
-       -$(RM) -f $(GOBJECTS)
+       -$(RM) -f $(addsuffix *.go,$(sort $(dir $(GOBJECTS))))
 
 
 # Test extensions; has to be unconditional.
-- 
2.9.3


Reply via email to