forked from THU-DSP-LAB/ventus-gpgpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 747 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
init:
git submodule update --init --recursive
patch:
find patches -type f | awk -F/ '{print("(echo "$$0" && cd dependencies/" $$2 " && git apply ../../" $$0 ")")}' | sh
depatch:
git submodule foreach 'git reset --hard && git clean -fdx'
bump:
git submodule foreach git stash
git submodule update --remote
git add dependencies
update-patches:
rm -rf patches
sed '/BEGIN-PATCH/,/END-PATCH/!d;//d' readme.md | awk '{print("mkdir -p patches/" $$1 " && wget " $$2 ".patch -P patches/" $$1 )}' | parallel
git add patches
bsp:
mill -i mill.bsp.BSP/install
idea:
mill -i mill.scalalib.GenIdea/idea
compile:
mill -i -j 0 __.compile
test:
mill -i ventus.tests.testOnly play.hello_test2
verilog:
mill ventus.run
clean:
git clean -fd