@@ -39,23 +39,10 @@ LDFLAGS=$(LDFLAGS_PROJ_VERSION) $(LDFLAGS_UPSTREAM_VERSION) $(LDFLAGS_EXTRAS) $(
3939# Ensure all directories exist before evaluating targets to avoid issues with `touch` creating directories.
4040_ := $(shell mkdir -p .make bin .pulumi/bin)
4141
42- # Installs all necessary tools with mise and records completion in a sentinel
43- # file so dependent targets can participate in make's caching behaviour. The
44- # environment is refreshed via an order-only prerequisite so it still runs on
45- # every invocation without invalidating the sentinel.
46- mise_install : .make/mise_install | mise_env
47-
48- .PHONY : mise_env
49- mise_env :
50- @mise env -q > /dev/null
51-
52- .make/mise_install :
53- @mise install -q
54- @touch $@
55-
5642# Build the provider and all SDKs and install ready for testing
5743build : .make/mise_install provider build_sdks install_sdks build_registry_docs
5844build : | mise_env
45+
5946# Keep aliases for old targets to ensure backwards compatibility
6047development : build
6148only_build : build
@@ -70,6 +57,20 @@ build_sdks: build_nodejs build_python build_dotnet build_go build_java build_reg
7057install_sdks : install_nodejs_sdk install_python_sdk install_dotnet_sdk install_go_sdk install_java_sdk
7158.PHONY : development only_build build generate generate_sdks build_sdks install_sdks mise_install mise_env
7259
60+ # Installs all necessary tools with mise and records completion in a sentinel
61+ # file so dependent targets can participate in make's caching behaviour. The
62+ # environment is refreshed via an order-only prerequisite so it still runs on
63+ # every invocation without invalidating the sentinel.
64+ mise_install : .make/mise_install | mise_env
65+
66+ mise_env :
67+ @mise env -q > /dev/null
68+
69+ .make/mise_install :
70+ @mise install -q
71+ @touch $@
72+
73+
7374help :
7475 @echo " Usage: make [target]"
7576 @echo " "
0 commit comments