Re: [hackers] [st][PATCH] make: add config.def.h as a dep of config.h

From: Jules Maselbas <jmaselbas_AT_kalray.eu>
Date: Thu, 14 Feb 2019 15:40:03 +0100 (CET)

> config.h isn't getting copied when config.def.h changes

You're going to loose your config.h after a an update of config.def.h !
I prefer the build to fail over having my config.h erased.

> Signed-off-by: William Casarin <jb55_AT_jb55.com>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index 470ac86..22cec89 100644
> --- a/Makefile
> +++ b/Makefile
> _AT_@ -15,7 +15,7 @@ options:
> _AT_echo "LDFLAGS = $(STLDFLAGS)"
> _AT_echo "CC = $(CC)"
>
> -config.h:
> +config.h: config.def.h
> cp config.def.h config.h
>
> .c.o:
> --
> 2.19.2
Received on Thu Feb 14 2019 - 15:40:03 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 14 2019 - 15:48:22 CET