summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2016-09-15 23:31:41 -0500
committerEric Bavier <bavier@member.fsf.org>2016-09-22 22:26:11 -0500
commitcdf26f40b0e8cb969a880a53f8606663229e46ff (patch)
tree3b934df1e4627a5d881e54077f514462836ef7e9
parent71b611bc34ebb7b1ea86571ed88ce8ff850ccdaa (diff)
downloadguix-cdf26f40b0e8cb969a880a53f8606663229e46ff.tar.gz
build: clean-go: warn about stray .go files.
* Makefile.am (clean-go): Warn of .go files remaining in builddir.
-rw-r--r--Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index f9fe14166b..43a33c80ad 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.