add submodule and makefile for building julid
This commit is contained in:
parent
5831d974ec
commit
404d0d6159
3 changed files with 26 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "julid"]
|
||||
path = julid
|
||||
url = https://gitlab.com/nebkor/julid.git
|
22
Makefile
Normal file
22
Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
.PHONY: run
|
||||
run: libjulid.so
|
||||
cargo run --release
|
||||
|
||||
.PHONY: init
|
||||
init:
|
||||
git submodule init && git submodule update
|
||||
|
||||
julid: init
|
||||
cd julid && \
|
||||
cargo build --release --no-default-features -F plugin && \
|
||||
cp target/release/libjulid.so ../
|
||||
|
||||
libjulid.so: julid
|
||||
|
||||
.PHONY: build
|
||||
build: libjulid.so
|
||||
cargo build --release
|
||||
|
||||
.PHONY: test
|
||||
test: libjulid.so
|
||||
cargo test
|
1
julid
Submodule
1
julid
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 34f85a95a0c289a87de9b97610677ffae136dc68
|
Loading…
Reference in a new issue