From a890771cd0a31bda055fc71741ace7822bc678dd Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 12 Aug 2019 12:14:43 +0200 Subject: build: add a testclean target This commit adds a target named testclean to allow for cleaning the temporary files generated during a test run without having to use the clean target. PR-URL: https://github.com/nodejs/node/pull/29094 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Rich Trott --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b18facf08e..d6c731c36d 100644 --- a/Makefile +++ b/Makefile @@ -170,12 +170,16 @@ clean: ## Remove build artifacts. $(RM) -r node_modules @if [ -d deps/icu ]; then echo deleting deps/icu; $(RM) -r deps/icu; fi $(RM) test.tap - # Next one is legacy remove this at some point - $(RM) -r test/tmp* - $(RM) -r test/.tmp* + $(MAKE) testclean $(MAKE) test-addons-clean $(MAKE) bench-addons-clean +.PHONY: testclean +testclean: +# Next one is legacy remove this at some point + $(RM) -r test/tmp* + $(RM) -r test/.tmp* + .PHONY: distclean distclean: $(RM) -r out -- cgit v1.2.3