feat(Makefile): add PHONY targets + run target
This commit is contained in:
parent
57de4fa948
commit
812791dc77
4 changed files with 20 additions and 0 deletions
|
|
@ -18,6 +18,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)
|
||||
|
|
@ -39,3 +41,6 @@ fclean: clean
|
|||
re:
|
||||
+make fclean
|
||||
+make all
|
||||
|
||||
run: $(NAME)
|
||||
./$(NAME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue