From 403115565351a5a4277d45b96b1c37a347f1d0b4 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 26 Jan 2023 16:22:03 -0300 Subject: build: run commands silently on config targets And also add an "error: " prefix, to make the output clearer. Before: $ rm -f config.mk; make config.mk printf 'run ./configure to generate %s\n' "config.mk" >&2 run ./configure to generate config.mk false make: *** No rule to make target 'config.mk'. Stop. After: $ rm -f config.mk; make config.mk error: run ./configure to generate config.mk make: *** No rule to make target 'config.mk'. Stop. This amends commit e21637ca8 ("makefiles: add generated files as dependencies", 2022-06-23) / PR #5219. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 119bf6b4b..a412aa767 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,8 @@ ALL_ITEMS = $(APPS) $(SBOX_APPS) $(SBOX_APPS_NON_DUMPABLE) $(MYLIBS) all: all_items mydirs $(MAN_TARGET) filters config.mk config.sh: - printf 'run ./configure to generate %s\n' "$@" >&2 - false + @printf 'error: run ./configure to generate %s\n' "$@" >&2 + @false .PHONY: all_items $(ALL_ITEMS) all_items: $(ALL_ITEMS) -- cgit v1.2.3-70-g09d2