summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Lawson2015-07-23 09:14:15 -0700
committerJim Lawson2015-07-24 15:50:55 -0700
commitaae03a4e09aef90cd6e924ea9f62e8fd04b4de37 (patch)
treedc5730364e730cc232ec5292f9fa7a6ce1e2b39e
parentf5308df7d79a90995497b4cdde8e6ed61e531669 (diff)
Preserve secondary files; use abspath for bin dir.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 87cdcced..b328b6d9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
+# Retain all intermediate files.
+.SECONDARY:
+
SBT ?= sbt
SBT_FLAGS ?= -Dsbt.log.noformat=true
CHISEL_VERSION = $(shell "$(SBT)" $(SBT_FLAGS) "show version" | tail -n 1 | cut -d ' ' -f 2)
SRC_DIR ?= .
-CHISEL_BIN ?= $(SRC_DIR)/bin
+CHISEL_BIN ?= $(abspath $(SRC_DIR)/bin)
export CHISEL_BIN
#$(info Build Chisel $(CHISEL_VERSION))