* [PATCH iproute2-next] config.mk: Rerun configure when it is newer than config.mk
@ 2021-05-15 20:13 David Ahern
2021-05-15 20:16 ` Petr Vorel
0 siblings, 1 reply; 2+ messages in thread
From: David Ahern @ 2021-05-15 20:13 UTC (permalink / raw)
To: stephen, netdev; +Cc: petr.vorel, heiko.thiery, David Ahern
config.mk needs to be re-generated any time configure is changed.
Rename the existing make target and add a check that the config.mk
file needs to exist and must be newer than configure script.
Signed-off-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
---
Makefile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 19bd163e2e04..5bc11477ab7a 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma dcb man vdpa
LIBNETLINK=../lib/libutil.a ../lib/libnetlink.a
LDLIBS += $(LIBNETLINK)
-all: config.mk
+all: config
@set -e; \
for i in $(SUBDIRS); \
do echo; echo $$i; $(MAKE) -C $$i; done
@@ -80,8 +80,10 @@ all: config.mk
@echo "Make Arguments:"
@echo " V=[0|1] - set build verbosity level"
-config.mk:
- sh configure $(KERNEL_INCLUDE)
+config:
+ @if [ ! -f config.mk -o configure -nt config.mk ]; then \
+ sh configure $(KERNEL_INCLUDE); \
+ fi
install: all
install -m 0755 -d $(DESTDIR)$(SBINDIR)
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH iproute2-next] config.mk: Rerun configure when it is newer than config.mk
2021-05-15 20:13 [PATCH iproute2-next] config.mk: Rerun configure when it is newer than config.mk David Ahern
@ 2021-05-15 20:16 ` Petr Vorel
0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2021-05-15 20:16 UTC (permalink / raw)
To: David Ahern; +Cc: stephen, netdev, heiko.thiery
Hi David,
> config.mk needs to be re-generated any time configure is changed.
> Rename the existing make target and add a check that the config.mk
> file needs to exist and must be newer than configure script.
> Signed-off-by: David Ahern <dsahern@kernel.org>
> Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Tested-by: Petr Vorel <petr.vorel@gmail.com>
Thanks!
Kind regards,
Petr
> ---
> Makefile | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
> diff --git a/Makefile b/Makefile
> index 19bd163e2e04..5bc11477ab7a 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -60,7 +60,7 @@ SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma dcb man vdpa
> LIBNETLINK=../lib/libutil.a ../lib/libnetlink.a
> LDLIBS += $(LIBNETLINK)
> -all: config.mk
> +all: config
> @set -e; \
> for i in $(SUBDIRS); \
> do echo; echo $$i; $(MAKE) -C $$i; done
> @@ -80,8 +80,10 @@ all: config.mk
> @echo "Make Arguments:"
> @echo " V=[0|1] - set build verbosity level"
> -config.mk:
> - sh configure $(KERNEL_INCLUDE)
> +config:
> + @if [ ! -f config.mk -o configure -nt config.mk ]; then \
> + sh configure $(KERNEL_INCLUDE); \
> + fi
> install: all
> install -m 0755 -d $(DESTDIR)$(SBINDIR)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-15 20:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-15 20:13 [PATCH iproute2-next] config.mk: Rerun configure when it is newer than config.mk David Ahern
2021-05-15 20:16 ` Petr Vorel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.