Files
2021-01-24 23:10:46 +08:00

22 lines
299 B
Makefile

_:
@just --list
# generage .rs
create-rs:
bindgen hello.h -o src/hello.rs
# create .a file
create-ar:
gcc -c -o hello.o hello.c
ar -cr libhello.a hello.o
# re-run
re-run:
rm hello.o || true
rm libhello.a || true
rm -rf target/ || true
@just create-ar
@just create-rs
cargo r