Skip to content

Commit 30f6ea5

Browse files
chore: Fix make teardown-py and make clean-py using outdated shared-data sub-make commands (#18556)
1 parent bd2b0ac commit 30f6ea5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ teardown-py: $(PYTHON_TEARDOWN_TARGETS)
9999
%-py-teardown: %-py-clean
100100
$(MAKE) -C $* teardown
101101

102+
# Specialize the %-py-teardown pattern rule above to account for the Makefile duopoly in shared-data.
103+
$(SHARED_DATA_DIR)-py-teardown: $(SHARED_DATA_DIR)-py-clean
104+
$(MAKE) -C $(SHARED_DATA_DIR) teardown-py
105+
102106
# clean all project output
103107
.PHONY: clean
104108
clean: clean-js clean-py
@@ -117,6 +121,10 @@ clean-py: $(PYTHON_CLEAN_TARGETS)
117121
%-py-clean:
118122
$(MAKE) -C $* clean
119123

124+
# Specialize the %-py-clean pattern rule above to account for the Makefile duopoly in shared-data.
125+
$(SHARED_DATA_DIR)-py-clean:
126+
$(MAKE) -C $(SHARED_DATA_DIR) clean-py
127+
120128
.PHONY: deploy-py
121129
deploy-py: export twine_repository_url = $(twine_repository_url)
122130
deploy-py: export pypi_username = $(pypi_username)

0 commit comments

Comments
 (0)