add dependencies to run makefile

This commit is contained in:
grimhilt
2023-11-11 22:24:24 +01:00
parent 5f4329d583
commit c7d011b301
2 changed files with 13 additions and 19 deletions

View File

@@ -6,11 +6,11 @@ all: run
prepare: src/main.o src/pin_handler.o
parser: src/parser.o
@$(CC) $(CFLAGS) -o $@ $^
parser: src/parser.o student.ino
@$(CC) $(CFLAGS) -o $@ src/parser.o
@./parser ./student.ino
run: parser $(OBJ_RUN)
run: parser $(OBJ_RUN) student.ino
@$(CC) -o main $(OBJ_RUN)
@./main