Skip to content

Commit 3786bd4

Browse files
committed
updated makefile
1 parent 9af0ebc commit 3786bd4

File tree

8 files changed

+11
-20
lines changed

8 files changed

+11
-20
lines changed

module_01/ex00/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ clean:
4848
@rm -rf $(TARGETDIR)
4949

5050
# Run the executable
51-
run:
52-
@./$(EXECUTABLE)
51+
run: all
52+
@./$(EXECUTABLE) $(ARGS)
5353

5454
# Phony targets
5555
.PHONY: all clean run

module_01/ex01/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ clean:
4848
@rm -rf $(TARGETDIR)
4949

5050
# Run the executable
51-
run:
52-
@./$(EXECUTABLE)
51+
run: all
52+
@./$(EXECUTABLE) $(ARGS)
5353

5454
# Phony targets
5555
.PHONY: all clean run

module_01/ex02/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ clean:
4848
@rm -rf $(TARGETDIR)
4949

5050
# Run the executable
51-
run:
52-
@./$(EXECUTABLE)
51+
run: all
52+
@./$(EXECUTABLE) $(ARGS)
5353

5454
# Phony targets
5555
.PHONY: all clean run

module_01/ex03/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ clean:
4848
@rm -rf $(TARGETDIR)
4949

5050
# Run the executable
51-
run:
52-
@./$(EXECUTABLE)
51+
run: all
52+
@./$(EXECUTABLE) $(ARGS)
5353

5454
# Phony targets
5555
.PHONY: all clean run

module_01/ex04/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ clean:
4848
@rm -rf $(TARGETDIR)
4949

5050
# Run the executable
51-
run:
51+
run: all
5252
@./$(EXECUTABLE) $(ARGS)
5353

5454
# Phony targets

module_01/ex05/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ clean:
4848
@rm -rf $(TARGETDIR)
4949

5050
# Run the executable
51-
run:
51+
run: all
5252
@./$(EXECUTABLE) $(ARGS)
5353

5454
# Phony targets

module_01/ex06/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ clean:
4848
@rm -rf $(TARGETDIR)
4949

5050
# Run the executable
51-
run:
51+
run: all
5252
@./$(EXECUTABLE) $(ARGS)
5353

5454
# Phony targets

module_01/ex06/src/Harl.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,10 @@ void Harl::complain(std::string level) {
1414
switch (this->select) {
1515
case DEBUG:
1616
debug();
17-
info();
18-
warning();
19-
error();
20-
break;
2117
case INFO:
2218
info();
23-
warning();
24-
error();
25-
break;
2619
case WARNING:
2720
warning();
28-
error();
29-
break;
3021
case ERROR:
3122
error();
3223
break;

0 commit comments

Comments
 (0)