[PATCH] helpers: track dependencies in Makefile

Brian Norris computersforpeace at gmail.com
Wed Jun 18 00:43:38 PDT 2014


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 <computersforpeace at gmail.com>
---
 helpers/Makefile |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/helpers/Makefile b/helpers/Makefile
index 7fd75673489b..cb0ed025c5ba 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
-- 
1.7.9.5




More information about the aiaiai mailing list