Skip to content

Commit 059cfc7

Browse files
committed
create install.sh
1 parent 6466516 commit 059cfc7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ MKFILE_DIR := $(dir $(MKFILE_PATH))
55
RELEASE_DIR := ${MKFILE_DIR}/output
66

77
CELL := ${RELEASE_DIR}/cell
8-
98
.phony: clean antlr grammar dev build test test_cell_examples
109
clean:
1110
# rm -rf internal/parser
@@ -25,8 +24,9 @@ build:
2524
make ckblibc
2625
go build -v -trimpath \
2726
-o ${CELL} ./cmd/cell
28-
rm -f cell
29-
ln -s ${CELL} cell
27+
@echo "sussecfully build cell"
28+
29+
3030
ckblibc:
3131
@echo " >>> build libdummy.a"
3232
cd third-party/ckb-c-stdlib && \
@@ -38,7 +38,10 @@ ckblibc:
3838
-o impl.o && \
3939
riscv64-unknown-elf-ar rcs libdummylibc.a impl.o
4040
mkdir -p output/pkg
41-
cp -r third-party/ckb-c-stdlib/libdummylibc.a output/pkg
41+
cp -r third-party/ckb-c-stdlib/libdummylibc.a output/pkg
42+
@echo "sussecfully build libdummy.a"
43+
install:
44+
source ./install.sh
4245
test:
4346
@echo "unit test"
4447
go mod tidy
@@ -65,3 +68,4 @@ test/cross:
6568
-Wl,--gc-sections \
6669
-o main tests/examples/hi.ll
6770
ckb-debugger --bin main
71+

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export PATH=./output:${PATH}

0 commit comments

Comments
 (0)