commit 22b4205904d96fa6650615919b1276086a282213 (patch)
parent 138af62cd2349dbd0beb5096058c576945986908
Author: Alex Karle <alex@alexkarle.com>
Date: Thu, 2 Dec 2021 09:47:01 -0500
make: Replace stacked targets with patterned targets
This will limit us to gmake (maybe the stacked targets already did?),
but it should make adding new files easier.
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -13,8 +13,5 @@ all: $(TARGETS)
clean:
rm -f $(TARGETS)
-2/c/b: 2/c/b.c
-2/c/a: 2/c/a.c
-1/c/b: 1/c/b.c
-1/c/a: 1/c/a.c
+%: %.c
$(CC) $(CFLAGS) -o $@ $<