feat(Makefile): add PHONY targets + run target

This commit is contained in:
Khaïs COLIN 2025-05-28 11:17:58 +02:00
parent 57de4fa948
commit 812791dc77
Signed by: logistic-bot
SSH key fingerprint: SHA256:3zI3/tx0ZpCLHCLPmEaGR4oeYCPMCzQxXhXutBmtOAU
4 changed files with 20 additions and 0 deletions

View file

@ -16,6 +16,8 @@ main_objs = main.o $(srcs:.cpp=.o)
all_objs = $(main_objs)
deps = $(all_objs:.o=.d)
.PHONY: all clean fclean re run
all: $(NAME)
-include $(deps)
@ -37,3 +39,6 @@ fclean: clean
re:
+make fclean
+make all
run: $(NAME)
./$(NAME)