[PATCH] helpers: track dependencies in Makefile
Keller, Jacob E
jacob.e.keller at intel.com
Wed Jun 18 13:11:21 PDT 2014
On Wed, 2014-06-18 at 00:43 -0700, Brian Norris wrote:
> Updates to remap-log.c and aiaiai-locker.c won't trigger rebuilds. Fix
> that. Also use the pattern-matching shorthand '%'.
>
Thanks! I've applied both of these.
Regards,
Jake
> 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
More information about the aiaiai
mailing list