Skip to contentSkip to conversation

Makefile: trigger re-configure on updated pythondeps

RFC PATCH In review Alex Bennée 3 participants 3 messages Jul 31, 2024 – Aug 1, 2024 Kbuild

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 Makefile: trigger re-configure on updated pythondeps

If we add additional deps for meson we need to ensure we trigger a reconfigure to make sure everything is set up.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 02a257584b..0281a883a1 100644
@@ -78,7 +78,7 @@ x := $(shell rm -rf meson-private meson-info meson-logs)
 endif
 
 # 1. ensure config-host.mak is up-to-date
-config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/scripts/meson-buildoptions.sh $(SRC_PATH)/VERSION
+config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/scripts/meson-buildoptions.sh $(SRC_PATH)/pythondeps.toml $(SRC_PATH)/VERSION
 	@echo config-host.mak is out-of-date, running configure
 	@if test -f meson-private/coredata.dat; then \
 	  ./config.status --skip-meson; \
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Alex Bennée

If we add additional deps for meson we need to ensure we trigger a reconfigure to make sure everything is set up.

---
  Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +0 -0
index 02a257584b..0281a883a1 100644

Makefile x := $(shell rm -rf meson-private meson-info meson-logs) · line 84

Quoted 8 lines
Makefile +1 -1
@@ -78,7 +78,7 @@ x := $(shell rm -rf meson-private meson-info meson-logs)
  endif
 
  # 1. ensure config-host.mak is up-to-date
-config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/scripts/meson-buildoptions.sh $(SRC_PATH)/VERSION
+config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/scripts/meson-buildoptions.sh $(SRC_PATH)/pythondeps.toml $(SRC_PATH)/VERSION
  	@echo config-host.mak is out-of-date, running configure
  	@if test -f meson-private/coredata.dat; then \
  	  ./config.status --skip-meson; \

r~

Reviewed-by on v1 1/1
#2 lore raw
In reply to Alex Bennée
Quoted 13 lines · Alex Bennée

If we add additional deps for meson we need to ensure we trigger a reconfigure to make sure everything is set up.

---
  Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +0 -0
index 02a257584b..0281a883a1 100644

Makefile x := $(shell rm -rf meson-private meson-info meson-logs) · line 81

Quoted 5 lines
Makefile +1 -1
@@ -78,7 +78,7 @@ x := $(shell rm -rf meson-private meson-info meson-logs)
  endif
 
  # 1. ensure config-host.mak is up-to-date
-config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/scripts/meson-buildoptions.sh $(SRC_PATH)/VERSION
+config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/scripts/meson-buildoptions.sh $(SRC_PATH)/pythondeps.toml $(SRC_PATH)/VERSION

This long line could be split with \, otherwise:

Quoted 3 lines
Makefile +0 -0
  	@echo config-host.mak is out-of-date, running configure
  	@if test -f meson-private/coredata.dat; then \
  	  ./config.status --skip-meson; \