From 37d8525507d70b02d1c588bae9c2e32f2358f004 Mon Sep 17 00:00:00 2001 From: Rohith Date: Tue, 13 Jun 2023 06:20:54 +0530 Subject: [PATCH] fix to makefile for repl --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 516de3c..3074da7 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ HEADERS = $(wildcard $(SRC_FOLDER)/*.h) TESTS = $(wildcard $(TEST_FOLDER)/*.c) SOURCES_WITHOUT_REPL_EVALUATOR_OBJECT = $(shell find ./src -type f -name '*.c' ! -name 'repl.c' ! -name 'evaluator.c' ! -name 'object.c') SOURCES_WITHOUT_MAIN = $(shell find ./src -type f -name '*.c' ! -name 'main.c' ! -name 'parser.c') +SOURCES_FOR_REPL = $(shell find ./src -type f -name '*.c' ! -name 'main.c') SOURCES_WITHOUT_MAIN_REPL = $(shell find ./src -type f -name '*.c' ! -name 'main.c' ! -name 'repl.c') BIN = $(wildcard $(BIN_FOLDER)/*) @@ -22,7 +23,7 @@ compile: $(SOURCES_HEADERS) $(CC) -o ./bin/mc $(SOURCES_WITHOUT_REPL) $(C_FLAGS) repl: $(SOURCES_HEADERS) - $(CC) -o ./bin/repl $(SOURCES_WITHOUT_MAIN) $(C_FLAGS) && ./bin/repl + $(CC) -o ./bin/repl $(SOURCES_FOR_REPL) $(C_FLAGS) && ./bin/repl test : $(SOURCES_HEADERS) $(TESTS) $(CC) -o ./bin/${name}_test ${TEST_FOLDER}/${name}_test.c ${SOURCES_WITHOUT_MAIN_REPL} ${C_FLAGS} && ./bin/${name}_test