From e786cdce58c4ff5f53ac8189ca902ad966c9235a Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 8 Apr 2024 16:04:31 -0700 Subject: [PATCH] Improved makefile --- makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 3ed5315..75149be 100644 --- a/makefile +++ b/makefile @@ -7,11 +7,12 @@ all: dest dest: @ mkdir -p bin -run: bin/modal +run: all bin/modal @ bin/modal examples/hello.modal 2> /dev/null -test: bin/modal-debug +test: bin/modal-debug bin/modal @ bin/modal -v - @ time bin/modal examples/test.modal "(arg1) (arg2 (arg3))" + @ bin/modal-debug examples/test.modal "(arg1) (arg2 (arg3))" + @ time bin/modal- examples/test.modal "(arg1) (arg2 (arg3))" install: bin/modal cp bin/modal ~/bin/ uninstall: @@ -26,5 +27,5 @@ archive: all bin/modal-debug: src/modal.c @ cc ${DEBUG_flags} src/modal.c -o bin/modal-debug bin/modal: src/modal.c - @ cc ${RELEASE_flags} src/modal.c -o bin/modal-debug + @ cc ${RELEASE_flags} src/modal.c -o bin/modal