Skip to content

Commit d53b676

Browse files
committed
chore: improve Makefile
1 parent f7ad9e1 commit d53b676

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
2-
PYCACHE_DIR := $(shell find . -name '__pycache__' -type d)
3-
PYTEST_DIR := $(shell find . -name '.pytest_cache' -type d)
4-
51
.PHONY: test install
62

73
install:
@@ -13,8 +9,13 @@ uninstall:
139
test:
1410
pytest test -vv -s
1511

12+
13+
PYCACHE_DIR := $(shell find . -name '__pycache__' -type d)
14+
PYTEST_DIR := $(shell find . -name '.pytest_cache' -type d)
15+
EGG_DIR := $(shell find . -name '*.egg-info' -type d)
16+
1617
clean:
17-
rm -rf $(PYCACHE_DIR) ${PYTEST_DIR} dist jsonpath.egg-info
18+
rm -rf $(PYCACHE_DIR) ${PYTEST_DIR} ${EGG_DIR} dist
1819

1920
package: clean
2021
python3 setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)