From a4b75ef6baebe83d62b36d48d525acb86d516d62 Mon Sep 17 00:00:00 2001 From: Manoj A Date: Fri, 24 May 2024 18:03:43 +0530 Subject: [PATCH] Update makefile --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index 2a2576a..161d440 100644 --- a/makefile +++ b/makefile @@ -9,9 +9,11 @@ _test: _build ./test/test.exe rc: + if [ ! -d build ]; then mkdir build; fi windres ascii.rc -o build/asciirc.o renderer: + if [ ! -d build ]; then mkdir build; fi $(CXX) -shared -o build/renderer.dll src/renderer.cpp -Wno-write-strings _build: clean renderer rc @@ -20,6 +22,7 @@ _build: clean renderer rc $(CC) -o build/ascii.exe build/ascii.o src/main.c -Lbuild -lrenderer build/asciirc.o clean: + if [ ! -d build ]; then mkdir build; fi rm -rf build/*.o rm -rf build/*.exe rm -rf build/*.dll