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: Add target SPKG-no-deps for all SPKGs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 16, 2020
1 parent 554282a commit 7a91c05
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,11 @@ $$(INST)/$(1)-$(2): $(3)

$(1): $$(INST)/$(1)-$(2)

$(1)-no-deps:
+$(AM_V_at)sage-logger -p '$$(SAGE_SPKG) $$(SAGE_SPKG_OPTIONS) \
$(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-existing) \
$(1)-$(2)' '$$(SAGE_LOGS)/$(1)-$(2).log'

$(1)-clean:
sage-spkg-uninstall $(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-files) \
$(1) '$(SAGE_LOCAL)'
Expand Down Expand Up @@ -464,6 +469,9 @@ $(1)-build-deps: $(2)
$(1): $(2)
$(AM_V_at)sage-logger -p 'sage --pip install -r "$$(SAGE_ROOT)/build/pkgs/$(1)/requirements.txt"' '$$(SAGE_LOGS)/$(1).log'

$(1)-no-deps:
$(AM_V_at)sage-logger -p 'sage --pip install -r "$$(SAGE_ROOT)/build/pkgs/$(1)/requirements.txt"' '$$(SAGE_LOGS)/$(1).log'

$(1)-clean:
-sage --pip uninstall -y -r '$$(SAGE_ROOT)/build/pkgs/$(1)/requirements.txt'

Expand Down Expand Up @@ -514,6 +522,12 @@ $$(INST)/$(1)-$(2): $(3)

$(1): $$(INST)/$(1)-$(2)

$(1)-no-deps:
$(AM_V_at)cd '$$(SAGE_ROOT)/build/pkgs/$(1)' && \
. '$$(SAGE_ROOT)/src/bin/sage-env' && . '$$(SAGE_ROOT)/build/bin/sage-build-env-config' && \
sage-logger -p '$$(SAGE_ROOT)/build/pkgs/$(1)/spkg-install' '$$(SAGE_LOGS)/$(1)-$(2).log'
touch "$$@"

$(1)-uninstall:
-$(AM_V_at)cd '$$(SAGE_ROOT)/build/pkgs/$(1)' && \
. '$$(SAGE_ROOT)/src/bin/sage-env-config' && \
Expand Down

0 comments on commit 7a91c05

Please sign in to comment.