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

Commit

Permalink
build/make/Makefile.in (...-clean): Do not fail trying to uninstall i…
Browse files Browse the repository at this point in the history
…f SAGE_VENV has not been created yet
  • Loading branch information
Matthias Koeppe committed Sep 16, 2021
1 parent 12cbbda commit 117fe3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,10 @@ $(1)-$(4)-no-deps:
$(1)-no-deps: $(1)-$(4)-no-deps

$(1)-$(4)-clean:
sage-spkg-uninstall $(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-files) \
$(1) '$$($(4))'
if [ -d '$$($(4))' ]; then \
sage-spkg-uninstall $(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-files) \
$(1) '$$($(4))'; \
fi

$(1)-clean: $(1)-$(4)-clean

Expand Down

0 comments on commit 117fe3a

Please sign in to comment.