]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
helpers: track dependencies in Makefile
authorBrian Norris <computersforpeace@gmail.com>
Wed, 18 Jun 2014 07:43:38 +0000 (00:43 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Wed, 18 Jun 2014 20:22:29 +0000 (13:22 -0700)
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@gmail.com>
helpers/Makefile

index 7fd75673489bcfcc1b2d2b37ca0e43ff8d820a13..cb0ed025c5ba55fdc380b51168a82b24f46aa496 100644 (file)
@@ -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