Skip to content

Commit 5ad7dbf

Browse files
committed
New start!
1 parent 5ba8cc7 commit 5ad7dbf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
77
#
88
# Binaries for programs and plugins
9+
chdb-go
910
*.exe
1011
*.exe~
1112
*.dll
1213
*.so
1314
*.dylib
15+
libchdb.tar.gz
1416

1517
# Test binary, built with `go test -c`
1618
*.test

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.PHONY: update_libchdb all test clean
22

33
update_libchdb:
4-
# ./update_libchdb.sh
4+
./update_libchdb.sh
5+
6+
install: update_libchdb
57
@echo "All the tests an main.go will search libchdb.so in the Current Working Directory"
68
@echo "We perfer to put libchdb.so in /usr/local/lib, so you can run"
79
@echo "'sudo cp -a libchdb.so /usr/local/lib' or 'make install' to do it"
810
@echo "You can also put it in other places, but you need to set LD_LIBRARY_PATH on Linux or DYLD_LIBRARY_PATH on macOS"
9-
10-
install: update_libchdb
1111
chmod +x libchdb.so
1212
sudo cp -a libchdb.so /usr/local/lib
1313
# if on Linux run `sudo ldconfig` to update the cache
@@ -21,4 +21,4 @@ run:
2121
CGO_ENABLED=1 go run main.go
2222

2323
build:
24-
CGO_ENABLED=1 go build -o chdb-cli main.go
24+
CGO_ENABLED=1 go build -o chdb-go main.go

0 commit comments

Comments
 (0)