add run commands for easier make usage

This commit is contained in:
vel 2024-11-14 11:46:34 -08:00
parent 79d51c42d5
commit 514f10062b
Signed by: velvox
GPG Key ID: 59D9762F674151DF
1 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,15 @@ test: main_test.o symbol_map.o expr.o scanner.o parser.o
parser_test: parser_test.o symbol_map.o expr.o scanner.o parser.o parser_test: parser_test.o symbol_map.o expr.o scanner.o parser.o
gcc parser_test.o symbol_map.o expr.o scanner.o parser.o -o parser_test.out -lm gcc parser_test.o symbol_map.o expr.o scanner.o parser.o -o parser_test.out -lm
run_parser_test: parser_test
./parser_test.out
run_interpreter_test: test
./interpreter_test.out
run_test: run_parser_test run_interpreter_test
# This pattern indicates that any .o file depends # This pattern indicates that any .o file depends
# upon the .c file of the same name, and all of the .h files. # upon the .c file of the same name, and all of the .h files.
# So, if a .o file is needed, it is built automatically. # So, if a .o file is needed, it is built automatically.