refactor(build step): Add Makefile

update .gitignore
add simple makefile
This commit is contained in:
Gers2017 2023-05-04 16:20:52 -06:00
parent d472910911
commit 5e8c502726
2 changed files with 15 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,6 +1,6 @@
/bin
/**/*.out
/ignore
main.rs
*.rs
test.cpp
test.rs

14
Makefile Normal file
View file

@ -0,0 +1,14 @@
CC=rustc
default: build-rs
build-rs:
node main.js main.cpp && $(CC) main.rs -o main.out
run:
./main.out
clean:
rm *.out