From 0e08241979720f34cfb7bb51677aa613b0f1301d Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 18 Jun 2014 00:43:38 -0700 Subject: [PATCH] helpers: track dependencies in Makefile Updates to remap-log.c and aiaiai-locker.c won't trigger rebuilds. Fix that. Also use the pattern-matching shorthand '%'. Signed-off-by: Brian Norris --- helpers/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/helpers/Makefile b/helpers/Makefile index 7fd7567..cb0ed02 100644 --- a/helpers/Makefile +++ b/helpers/Makefile @@ -1,10 +1,7 @@ all: remap-log aiaiai-locker -remap-log: - $(CC) $(CFLAGS) -o remap-log remap-log.c - -aiaiai-locker: - $(CC) $(CFLAGS) -o aiaiai-locker aiaiai-locker.c +%: %.c + $(CC) $(CFLAGS) -o $@ $< clean: $(RM) remap-log aiaiai-locker -- 2.49.0