From 989833559238e2f19e375158cf4df149ac9ba020 Mon Sep 17 00:00:00 2001 From: Gers2017 Date: Thu, 4 May 2023 16:20:52 -0600 Subject: [PATCH] refactor(build step): Add Makefile update .gitignore add simple makefile --- .gitignore | 2 +- Makefile | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index c6fb05b..3f8bde6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /bin /**/*.out /ignore -main.rs +*.rs test.cpp test.rs \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..619abc7 --- /dev/null +++ b/Makefile @@ -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 +