From 22b4205904d96fa6650615919b1276086a282213 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Thu, 2 Dec 2021 09:47:01 -0500 Subject: [PATCH] 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. --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 19e8b4a..4302d5f 100644 --- 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 $@ $< -- libgit2 1.8.1