Makefile: fix misdirected redirections
[gitweb.git] / Makefile
index 8700db8d428f0332b88eef4c867d98f757fe4dd8..296f17528cd5bf0279f98dc3fb38841875e42bf8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2211,10 +2211,10 @@ sparse: $(SP_OBJ)
 check: common-cmds.h
        @if sparse; \
        then \
-               echo 2>&1 "Use 'make sparse' instead"; \
+               echo >&2 "Use 'make sparse' instead"; \
                $(MAKE) --no-print-directory sparse; \
        else \
-               echo 2>&1 "Did you mean 'make test'?"; \
+               echo >&2 "Did you mean 'make test'?"; \
                exit 1; \
        fi