From 514f10062b1510a51d6fa77816e77c91e6636b6b Mon Sep 17 00:00:00 2001 From: Riley Smith Date: Thu, 14 Nov 2024 11:46:34 -0800 Subject: [PATCH] add run commands for easier make usage --- lab-5/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lab-5/Makefile b/lab-5/Makefile index 4c4f16d..8b3e50d 100644 --- a/lab-5/Makefile +++ b/lab-5/Makefile @@ -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 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 # 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.