From caa7602b878c03c47fd263550e37715f1a67f854 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Mon, 11 May 2015 10:01:49 -0700 Subject: Clean up make clean. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 485e0f7a..a4e0f62d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SBT ?= sbt SBT_FLAGS ?= -Dsbt.log.noformat=true RM_DIRS := test-outputs test-reports -CLEAN_DIRS := doc +#CLEAN_DIRS := doc SRC_DIR ?= . SYSTEMC ?= $(SRC_DIR)/../../systemc/systemc-2.3.1 @@ -28,8 +28,12 @@ coverage: clean: $(SBT) $(SBT_FLAGS) +clean +ifneq (,$(CLEAN_DIRS)) for dir in $(CLEAN_DIRS); do $(MAKE) -C $$dir clean; done +endif +ifneq (,$(RM_DIRS)) $(RM) -r $(RM_DIRS) +endif scaladoc: $(SBT) $(SBT_FLAGS) doc test:doc -- cgit v1.2.3