From ffe1710d5a91cd9906f2419d21944b1375b1b842 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Thu, 15 Sep 2016 23:31:41 -0500 Subject: [PATCH] build: clean-go: warn about stray .go files. * Makefile.am (clean-go): Warn of .go files remaining in builddir. --- Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.am b/Makefile.am index f9fe141..43a33c8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -208,6 +208,12 @@ endif INSTALL_SRFI_37 # Handy way to remove the .go files without removing all the rest. clean-go: -$(RM) -f $(GOBJECTS) + @find . -name '*.go' -print | \ + if test -t 1; then \ + xargs -r echo -e "\033[31mwarning:\033[0m stray .go files:"; \ + else \ + xargs -r echo "warning: stray .go files:"; \ + fi # Test extensions; has to be unconditional. -- 2.9.2