From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: [PATCH] build: Clean all .go files in clean-go. Date: Wed, 31 Aug 2016 18:20:34 -0500 Message-ID: <20160831232034.13748-2-ericbavier@openmailbox.org> References: <20160831232034.13748-1-ericbavier@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfEoi-0006Rb-KB for guix-devel@gnu.org; Wed, 31 Aug 2016 19:21:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfEoc-0005By-QO for guix-devel@gnu.org; Wed, 31 Aug 2016 19:21:11 -0400 Received: from smtp26.openmailbox.org ([62.4.1.60]:50259 helo=smtp11.openmailbox.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfEoc-0005Bb-JV for guix-devel@gnu.org; Wed, 31 Aug 2016 19:21:06 -0400 In-Reply-To: <20160831232034.13748-1-ericbavier@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: Eric Bavier From: Eric Bavier * 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