Improved makefile
This commit is contained in:
parent
57207920c8
commit
e786cdce58
9
makefile
9
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue