summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJim Lawson2015-05-11 10:01:49 -0700
committerJim Lawson2015-07-24 15:50:52 -0700
commitcaa7602b878c03c47fd263550e37715f1a67f854 (patch)
tree9f6ba59ea88a696507c54bf6882efb5b71a6c196 /Makefile
parentf4a7e53abe314ad28397aae208287998fce4fa1a (diff)
Clean up make clean.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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