Skip to content

Commit d1d3870

Browse files
committed
Fix makefile
1 parent e7d0a3d commit d1d3870

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@ help:
66
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
77

88
.PHONY: dist
9-
dist: ## Build dists
10-
@$(CURDIR)/tools/clean-cache.sh
9+
dist: clean ## Build dists
1110
@$(CURDIR)/tools/dist.sh
12-
@$(CURDIR)/tools/clean-cache.sh soft
11+
@$(MAKE) clean-cache
1312

14-
.PHONY: clean
15-
clean: ## Clean cache, include dist
13+
.PHONY: clean-cache
14+
clean-cache:
1615
find -name *.egg-info -exec rm -rf {} +
1716
find -name *.pyc -exec rm -rf {} +
1817
find -name *.pyo -exec rm -rf {} +
1918
find -name *.so -exec rm -rf {} +
19+
find -name *.pyd -exec rm -rf {} +
20+
21+
.PHONY: clean
22+
clean: clean-cache ## Clean cache, include dist
2023
rm -rf dist
2124
rm -rf build
2225

0 commit comments

Comments
 (0)