forked from ExperimentWith/ducttape
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (21 loc) · 765 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Can be overriden by user using environment variable
DUCTTAPE:=$(shell dirname $(realpath $(lastword ${MAKEFILE_LIST})))
SBT:=sbt
SRC_FILES=$(shell find src builtins -type f)
compile: ${SRC_FILES}
${SBT} compile
dist: ${SRC_FILES} logging.properties build.sbt
${SBT} assembly
bash ${DUCTTAPE}/build-support/dist.sh
doc:
${SBT} doc
${DUCTTAPE}/build-support/doc.sh ${DUCTTAPE}/dist/ducttape-current
test-unit: ${SRC_FILES} logging.properties build.sbt
${SBT} test
# Run regression tests using the distribution version
test-regression: ${DUCTTAPE}/dist/ducttape-current
${DUCTTAPE}/build-support/test-regression.sh ${DUCTTAPE}/dist/ducttape-current
# SBT likes to keep lots of garbage around
clean:
rm -rf ~/.ivy2 ~/.m2 ~/.sbt
sbt clean cleanFiles