From 51e1c5bc128a61831d03e585a8903f4621fcf2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 24 Dec 2015 16:51:18 +0100 Subject: Simplify cleaning in the test suite Not only simpler but also faster, especially on Windows. --- test/plugin_erlydtl.mk | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'test/plugin_erlydtl.mk') diff --git a/test/plugin_erlydtl.mk b/test/plugin_erlydtl.mk index f32bc06..b96596d 100644 --- a/test/plugin_erlydtl.mk +++ b/test/plugin_erlydtl.mk @@ -2,18 +2,12 @@ ERLYDTL_CASES = compile full-path ERLYDTL_TARGETS = $(addprefix erlydtl-,$(ERLYDTL_CASES)) -ERLYDTL_CLEAN_TARGETS = $(addprefix clean-,$(ERLYDTL_TARGETS)) -.PHONY: erlydtl $(ERLYDTL_TARGETS) clean-erlydtl $(ERLYDTL_CLEAN_TARGETS) - -clean-erlydtl: $(ERLYDTL_CLEAN_TARGETS) - -$(ERLYDTL_CLEAN_TARGETS): - $t rm -rf $(APP_TO_CLEAN) +.PHONY: erlydtl $(ERLYDTL_TARGETS) erlydtl: $(ERLYDTL_TARGETS) -erlydtl-compile: build clean-erlydtl-compile +erlydtl-compile: build clean $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ @@ -41,7 +35,7 @@ erlydtl-compile: build clean-erlydtl-compile {ok, [$(APP_)_one_dtl, $(APP)_two_dtl]} = application:get_key($(APP), modules), \ halt()" -erlydtl-full-path: build clean-erlydtl-full-path +erlydtl-full-path: build clean $i "Bootstrap a new OTP library named $(APP)" $t mkdir $(APP)/ -- cgit v1.2.3