add dependencies to run makefile
This commit is contained in:
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user