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: Make SPKG-no-deps targets phony; for script p…
Browse files Browse the repository at this point in the history
…ackages, create the correct installation stamp file
  • Loading branch information
mkoeppe committed Jul 16, 2020
1 parent 4fc909c commit 03a2dbe
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ $(1)-clean:
sage-spkg-uninstall $(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-files) \
$(1) '$(SAGE_LOCAL)'

.PHONY: $(1) $(1)-clean $(1)-build-deps
.PHONY: $(1) $(1)-clean $(1)-build-deps $(1)-no-deps
endef

$(foreach pkgname, $(NORMAL_PACKAGES),\
Expand Down Expand Up @@ -475,7 +475,7 @@ $(1)-no-deps:
$(1)-clean:
-sage --pip uninstall -y -r '$$(SAGE_ROOT)/build/pkgs/$(1)/requirements.txt'

.PHONY: $(1) $(1)-clean $(1)-build-deps
.PHONY: $(1) $(1)-clean $(1)-build-deps $(1)-no-deps $(1)-clean
endef

$(foreach pkgname,$(PIP_PACKAGES),\
Expand Down Expand Up @@ -526,7 +526,7 @@ $(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 "$$@"
touch "$$(INST)/$(1)-$(2)"

$(1)-uninstall:
-$(AM_V_at)cd '$$(SAGE_ROOT)/build/pkgs/$(1)' && \
Expand All @@ -536,7 +536,7 @@ $(1)-uninstall:
'$$(SAGE_ROOT)/build/pkgs/$(1)/spkg-uninstall'
-rm -f "$$(INST)/$(1)-$(2)"

.PHONY: $(1) $(1)-uninstall $(1)-build-deps
.PHONY: $(1) $(1)-uninstall $(1)-build-deps $(1)-no-deps $(1)-clean
endef

$(foreach pkgname,$(SCRIPT_PACKAGES),\
Expand All @@ -559,7 +559,4 @@ list:
done


.PHONY: $(NORMAL_PACKAGES) $(addsuffix -clean,$(NORMAL_PACKAGES)) \
$(PIP_PACKAGES) $(addsuffix -clean,$(PIP_PACKAGES)) \
$(SCRIPT_PACKAGES) $(addsuffix -clean,$(SCRIPT_PACKAGES)) \
list
.PHONY: list

0 comments on commit 03a2dbe

Please sign in to comment.