summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJim Lawson2017-09-14 09:42:07 -0700
committerGitHub2017-09-14 09:42:07 -0700
commit6a5764225fd0efdb83c67124abcc06ab9bd02fc6 (patch)
tree58771a2b91b89dea74e38b0678452bd77ed35d29 /Makefile
parenta97fbfca90ba1a2604c89d3595a49d5260bd5f91 (diff)
Update sbt to 0.13.16; add Scala 2.12 support. (#675)
To clean, test, and build Scala 2.11 and Scala 2.12 versions: % sbt +clean +test +publishLocal
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9cf211f2..e8d1f613 100644
--- a/Makefile
+++ b/Makefile
@@ -25,15 +25,15 @@ c_resources_dir := src/main/resources
test_outs := $(addprefix $(targetDir)/, $(addsuffix .out, $(test_results)))
-.PHONY: smoke publish-local check clean jenkins-build coverage scaladoc test checkstyle compile
+.PHONY: smoke publish-local pubishLocal check clean jenkins-build coverage scaladoc test checkstyle compile
-default: publish-local
+default: publishLocal
smoke compile:
$(SBT) $(SBT_FLAGS) compile
-publish-local:
- $(SBT) $(SBT_FLAGS) publish-local
+publish-local publishLocal:
+ $(SBT) $(SBT_FLAGS) publishLocal
test:
$(SBT) $(SBT_FLAGS) test
@@ -69,7 +69,7 @@ site:
# We need to run the coverage tests last, since Jenkins will fail the build if it can't find their results.
jenkins-build: clean
$(SBT) $(SBT_FLAGS) test
- $(SBT) $(SBT_FLAGS) clean publish-local
+ $(SBT) $(SBT_FLAGS) clean publishLocal
$(SBT) $(SBT_FLAGS) scalastyle coverage test
$(SBT) $(SBT_FLAGS) coverageReport
@@ -87,3 +87,8 @@ $(targetDir)/%.h: $(c_resources_dir)/%.h
$(targetDir)/%.out: $(targetDir)/%
$(SBT) $(SBT_FLAGS) "test:runMain ChiselTests.MiniChisel $(notdir $(basename $<)) $(CHISEL_FLAGS) --test --targetDir $(targetDir)"
+
+# The "last-resort" rule.
+# We assume the target is something like "+clean".
+%::
+ $(SBT) $(SBT_FLAGS) $@