Improved makefile

This commit is contained in:
Devine Lu Linvega 2024-04-08 16:04:31 -07:00
parent 57207920c8
commit e786cdce58
1 changed files with 5 additions and 4 deletions

View File

@ -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