guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: Clean all .go files in clean-go.


From: Eric Bavier
Subject: [PATCH] build: Clean all .go files in clean-go.
Date: Wed, 31 Aug 2016 18:20:34 -0500

From: Eric Bavier <address@hidden>

* 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

[Prev in Thread] Current Thread [Next in Thread]