From 04b9e78ca973774fab1b261f1331516e7ecfa2e3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 4 Sep 2021 11:28:36 +0200 Subject: improve new-c-proj MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- base/new-c-proj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/new-c-proj b/base/new-c-proj index e1c6d6a..be109ae 100755 --- a/base/new-c-proj +++ b/base/new-c-proj @@ -73,7 +73,7 @@ if printf '%s\n' "$1" | grep '^lib' >/dev/null 2>/dev/null; then x $1.h all: $1.a - \$(OBJ): \$(@:.o=.c) \$(HDR) + \$(OBJ): \$(HDR) .c.o: x \$(CC) -c -o \$@ \$< \$(CFLAGS) \$(CPPFLAGS) @@ -120,7 +120,7 @@ else HDR = all: $1 - \$(OBJ): \$(@:.o=.c) \$(HDR) + \$(OBJ): \$(HDR) .c.o: x \$(CC) -c -o \$@ \$< \$(CFLAGS) \$(CPPFLAGS) -- cgit v1.2.3-70-g09d2