Skip to content

Commit f398cb2

Browse files
committed
Cleanup meson build directory in sagelib-clean
1 parent 1c119e8 commit f398cb2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ clean:
113113
fi
114114

115115
# "c_lib", ".cython_version", "build" in $(SAGE_SRC) are from old sage versions
116-
# Cleaning .so files (and .c and .cpp files associated with .pyx files) is for editable installs.
117-
# Also cython_debug is for editable installs.
116+
# Cleaning .so files (and .c and .cpp files associated with .pyx files), cython_debug and "sagelib/src/build" is for old editable installs.
118117
sagelib-clean:
119118
@echo "Deleting Sage library build artifacts..."
120119
if [ -d "$(SAGE_SRC)" ]; then \
@@ -125,6 +124,12 @@ sagelib-clean:
125124
cd sage/ext/interpreters/ && rm -f *.so *.c *.h *.py* *.pxd) \
126125
&& rm -rf "$(SAGE_ROOT)"/build/pkgs/sagelib/src/build; \
127126
fi
127+
@echo "Wiping meson build directories..."
128+
@for d in "$(SAGE_ROOT)"/build/cp[0-9]*; do \
129+
if [ -d "$$d" ]; then \
130+
meson setup --wipe "$$d"; \
131+
fi; \
132+
done
128133

129134
sage_docbuild-clean:
130135
(cd "$(SAGE_ROOT)/build/pkgs/sage_docbuild/src" && rm -rf build)

0 commit comments

Comments
 (0)