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: Replace 'SPKG-clean' by 'SPKG-uninstall', wit…
Browse files Browse the repository at this point in the history
…h deprecation
  • Loading branch information
mkoeppe committed Sep 24, 2020
1 parent 8c4fb4d commit 137365a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build/make/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -453,16 +453,25 @@ $(1)-no-deps:
$(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-existing) \
$(1)-$(2)' '$$(SAGE_LOGS)/$(1)-$(2).log'

$(1)-clean:
$(1)-uninstall:
sage-spkg-uninstall $(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-files) \
$(1) '$(SAGE_LOCAL)'

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

define NORMAL_PACKAGE_clean_templ #####################################
$(1)-clean:
@echo Deprecation warning: Please use 'make $(1)-uninstall' instead of 'make $(1)-clean'
+$(MAKE_REC) $(1)-uninstall
endef #################################################################

$(foreach pkgname, $(NORMAL_PACKAGES),\
$(eval $(call NORMAL_PACKAGE_templ,$(pkgname),$(vers_$(pkgname)),\
$(call pkg_deps,$(pkgname)))))
$(foreach pkgname, $(NORMAL_PACKAGES),\
$(eval $(call NORMAL_PACKAGE_clean_templ,$(pkgname),$(vers_$(pkgname)),\
$(call pkg_deps,$(pkgname)))))

ifdef DEBUG_RULES
$(info # Rules for standard packages)
Expand Down

0 comments on commit 137365a

Please sign in to comment.