From a9444e0cd656e3f87268e44b8cadfe0d36e43fc9 Mon Sep 17 00:00:00 2001 From: Ivan Tatarinov Date: Tue, 20 Apr 2021 10:42:23 +0300 Subject: [PATCH] sdk: added missing targets `clean` and `dist-clean` for `zx7b` and `tools` --- sdk/src/Makefile | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/sdk/src/Makefile b/sdk/src/Makefile index e185d53..846b498 100644 --- a/sdk/src/Makefile +++ b/sdk/src/Makefile @@ -220,7 +220,8 @@ dist-clean-z88dk: # zx7b -.PHONY: local-zx7b +.PHONY: local-zx7b clean-zx7b + local-zx7b: $(INSTALLDIR)/zx7b$(EXESUFFIX) ifeq ($(_DoBuild),1) @@ -231,13 +232,19 @@ $(INSTALLDIR)/zx7b$(EXESUFFIX): zx7b/zx7b$(EXESUFFIX) zx7b/zx7b$(EXESUFFIX): | zx7b $(MAKE) -w -C $| -.PHONY: clean-zx7b clean-zx7b: | zx7b $(MAKE) -w -C $| clean rm -f $(INSTALLDIR)/zx7b$(EXESUFFIX) +else + +clean-zx7b:; + endif +.PHONY: dist-clean-zx7b +dist-clean-zx7b: clean-zx7b + # tools INSTALLED_TOOLS:=\ @@ -248,7 +255,8 @@ INSTALLED_TOOLS:=\ $(INSTALLDIR)/GenRom$(EXESUFFIX)\ $(INSTALLDIR)/AddItem$(EXESUFFIX) -.PHONY: local-tools +.PHONY: local-tools clean-tools + local-tools: $(INSTALLED_TOOLS) ifeq ($(_DoBuild),1) @@ -274,13 +282,19 @@ $(INSTALLDIR)/AddItem$(EXESUFFIX): tools/AddItem$(EXESUFFIX) tools/%$(EXESUFFIX): | tools $(MAKE) -w -C $| $(@F) -.PHONY: clean-tools clean-tools: | tools $(MAKE) -w -C $| clean rm -f $(INSTALLED_TOOLS) +else + +clean-tools:; + endif +.PHONY: dist-clean-tools +dist-clean-tools: clean-tools + .PHONY: clean ifeq ($(_DoClean),1) clean: clean-sjasmplus clean-z88dk clean-zx7b clean-tools @@ -290,7 +304,7 @@ endif .PHONY: dist-clean ifeq ($(_DoClean),1) -dist-clean: dist-clean-sjasmplus dist-clean-z88dk clean-zx7b clean-tools +dist-clean: dist-clean-sjasmplus dist-clean-z88dk dist-clean-zx7b dist-clean-tools else dist-clean: dist-clean-sjasmplus dist-clean-z88dk endif