Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 29310: use $$SAGE_LOCAL instead of $(SAGE_LOCAL) --
Browse files Browse the repository at this point in the history
environment variable, not makefile variable
  • Loading branch information
jhpalmieri committed Dec 21, 2021
1 parent 67d69da commit e28f093
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ SAGE_SRC = $(SAGE_ROOT)/src

clean:
@echo "Deleting package build directories..."
if [ -x "$(SAGE_SRC)"/bin/sage-env-config ]; then \
if [ -f "$(SAGE_SRC)"/bin/sage-env-config ]; then \
. "$(SAGE_SRC)"/bin/sage-env-config; \
rm -rf "$(SAGE_LOCAL)/var/tmp/sage/build"; \
if [ -n "$$SAGE_LOCAL" ]; then \
rm -rf "$$SAGE_LOCAL/var/tmp/sage/build"; \
fi; \
fi

# "c_lib", ".cython_version", "build" in $(SAGE_SRC) are from old sage versions
Expand Down

0 comments on commit e28f093

Please sign in to comment.