From a3efb9d2c00f5b93de0ae90f884f99d8871497fc Mon Sep 17 00:00:00 2001 From: Stefan Date: Wed, 14 Jun 2023 09:48:48 +0200 Subject: [PATCH 1/2] All dependencies --- Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6e14aa6..a083a2a 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,25 @@ STAG = stag.o regex.o all: vi -conf.o: conf.h +cmd.o: cmd.c vi.h +conf.o: conf.c vi.h conf.h kmap.h +dir.o: dir.c vi.h +ex.o: ex.c vi.h +lbuf.o: lbuf.c vi.h +led.o: led.c vi.h +mot.o: mot.c vi.h +reg.o: reg.c vi.h +regex.o: regex.c regex.h +ren.o: ren.c vi.h +rset.o: rset.c regex.h vi.h +rstr.o: rstr.c vi.h +sbuf.o: sbuf.c vi.h +stag.o: stag.c regex.h +syn.o: syn.c vi.h +tag.o: tag.c vi.h +term.o: term.c vi.h +uc.o: uc.c vi.h +vi.o: vi.c vi.h %.o: %.c $(CC) -c $(CFLAGS) $< From e31ce53046b64fc2d8ba25f44682f051e2232c52 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 30 Jul 2023 02:00:00 +0200 Subject: [PATCH 2/2] Optimized dependencies --- Makefile | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Makefile b/Makefile index a083a2a..afda1fe 100644 --- a/Makefile +++ b/Makefile @@ -8,27 +8,12 @@ STAG = stag.o regex.o all: vi -cmd.o: cmd.c vi.h conf.o: conf.c vi.h conf.h kmap.h -dir.o: dir.c vi.h -ex.o: ex.c vi.h -lbuf.o: lbuf.c vi.h -led.o: led.c vi.h -mot.o: mot.c vi.h -reg.o: reg.c vi.h regex.o: regex.c regex.h -ren.o: ren.c vi.h rset.o: rset.c regex.h vi.h -rstr.o: rstr.c vi.h -sbuf.o: sbuf.c vi.h stag.o: stag.c regex.h -syn.o: syn.c vi.h -tag.o: tag.c vi.h -term.o: term.c vi.h -uc.o: uc.c vi.h -vi.o: vi.c vi.h -%.o: %.c +%.o: %.c vi.h $(CC) -c $(CFLAGS) $< vi: $(OBJS) $(CC) -o $@ $(OBJS) $(LDFLAGS)