According to the GNU make documentation, the syntax for pattern rules
is as follows:

<target pattern>+: <source pattern>
        <rule>

Signed-off-by: Bart Van Assche <[email protected]>
---
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 612282d14af8..d7ae832fc4fd 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -13,7 +13,7 @@ all: $(TARGETS)
 clean:
        rm -f $(TARGETS)
 
-$(TARGETS): %: %.c
+%: %.c
        $(CC) -Wall -o $@ $(CPPFLAGS) $(CFLAGS) $^
 
 .PHONY: all clean
-- 
2.17.1

Reply via email to