Skip to content

Commit 2c36a1b

Browse files
committed
Make Makefile compatible with macOS
It looks like macOS distribution of `rm` does not understand long versions of flag names, such as --force or --recursive. This PR switches to their respective short versions (-f and -r) to increase compatibility.
1 parent ac06f8c commit 2c36a1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ dist: clean
77
clean-pyc:
88
find . -name '*.pyc' -type f -exec rm {} +
99
find . -name '*.pyo' -type f -exec rm {} +
10-
find . -name '__pycache__' -type d -exec rm --recursive {} +
10+
find . -name '__pycache__' -type d -exec rm -r {} +
1111

1212
clean-build:
13-
rm --recursive --force build/
14-
rm --recursive --force dist/
13+
rm -rf build/
14+
rm -rf dist/
1515

1616
clean: clean-pyc clean-build
1717

0 commit comments

Comments
 (0)