Fix: added back generics to the makefile
This commit is contained in:
parent
4a8ab862ae
commit
bab648545d
2 changed files with 7 additions and 3 deletions
4
Makefile
4
Makefile
|
|
@ -6,7 +6,7 @@
|
||||||
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2023/11/12 11:05:05 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
|
# Rules
|
||||||
SRC_DIR = ./sources
|
SRC_DIR = ./sources
|
||||||
|
GEN_DIR = ./output
|
||||||
NAME = minishell
|
NAME = minishell
|
||||||
|
|
||||||
# All (make all)
|
# All (make all)
|
||||||
|
|
@ -90,5 +91,6 @@ re: header
|
||||||
|
|
||||||
generate_filelist:
|
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 $(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
|
||||||
.PHONY: all bonus clean fclean re
|
.PHONY: all bonus clean fclean re
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
|
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2024/04/28 17:28:30 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
|
./libft/ft_strlen.c
|
||||||
|
|
||||||
SRC_DIR = ./sources
|
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
|
||||||
NAME = minishell
|
NAME = minishell
|
||||||
LIBDIRNAME = libft
|
LIBDIRNAME = libft
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue