-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (27 loc) · 887 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
29
30
31
32
33
34
35
36
37
38
39
40
BUILD_DIR = ./build
export PATH := $(PATH):$(abspath ./utils)
test: reformat
mkdir -p $(BUILD_DIR)
utils/mill -i -j 0 __.test
verilog: reformat
mkdir -p $(BUILD_DIR)
utils/mill -i -j 0 __.test.runMain Elaborate -td $(BUILD_DIR)
help:
utils/mill -i __.test.runMain Elaborate --help
compile:
utils/mill -i -j 0 __.compile
bsp:
utils/mill -i -j 0 mill.bsp.BSP/install
reformat:
utils/mill -i -j 0 __.reformat
checkformat:
utils/mill -i -j 0 __.checkFormat
doc:
utils/mill -j 0 show __.docJar
build_docker:
docker build -f .devcontainer/Dockerfile -t chisel-chipware:latest .
run_docker: build_docker
docker run -it --rm -v $(shell pwd):/workspace/$(shell basename $$(pwd)) --workdir /workspace/$(shell basename $$(pwd)) chisel-chipware:latest
clean:
-rm -rf $(BUILD_DIR)
.PHONY: test verilog help compile bsp reformat checkformat doc build_docker run_docker clean