From: Brian Norris Date: Wed, 18 Jun 2014 07:43:38 +0000 (-0700) Subject: helpers: track dependencies in Makefile X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0e08241979720f34cfb7bb51677aa613b0f1301d;p=users%2Fdedekind%2Faiaiai.git 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 --- 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