diff --git a/Makefile b/Makefile index fdce2405..f6b6c6da 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/04/29 13:46:41 by maiboyer ### ########.fr # +# Updated: 2024/04/29 13:58:38 by maiboyer ### ########.fr # # # # **************************************************************************** # @@ -22,6 +22,7 @@ END = \033[0m # Rules SRC_DIR = ./sources +GEN_DIR = ./output NAME = minishell # All (make all) @@ -90,5 +91,6 @@ re: header generate_filelist: @/usr/bin/env zsh -c "tree -iFf --noreport $(SRC_DIR) | rg '^$(SRC_DIR)/(.*\.c)\$$' --replace '\$$1' | sort -u" > ./src.list + @/usr/bin/env zsh -c "tree -iFf --noreport $(GEN_DIR) | rg '^$(GEN_DIR)/(.*\.c)\$$' --replace '\$$1' | sort -u" > ./gen.list # phony .PHONY: all bonus clean fclean re diff --git a/Minishell.mk b/Minishell.mk index 975f82c3..058d3e17 100644 --- a/Minishell.mk +++ b/Minishell.mk @@ -6,7 +6,7 @@ # By: maiboyer +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2024/04/28 17:28:30 by maiboyer #+# #+# # -# Updated: 2024/04/29 13:46:19 by maiboyer ### ########.fr # +# Updated: 2024/04/29 13:59:16 by maiboyer ### ########.fr # # # # **************************************************************************** # @@ -28,7 +28,9 @@ LIB = ./libft/ft_bzero.c \ ./libft/ft_strlen.c SRC_DIR = ./sources -SRC = $(addprefix $(SRC_DIR)/,$(shell cat ./src.list)) +SRC_DIR = ./output + +SRC = $(addprefix $(SRC_DIR)/,$(shell cat ./src.list)) $(addprefix $(GEN_DIR)/,$(shell cat ./gen.list)) # Name NAME = minishell LIBDIRNAME = libft