diff --git a/.gitignore b/.gitignore index ffa7f69..55ead90 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ !mlx_mac/ !mlx_mac/* +!lib/ + !includes/ !cub3d.h !mlx_keycode.h diff --git a/Makefile b/Makefile index 01440c8..e3560a1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ NAME = cub3d LIBFT = lib/libft.a -MLX = includes/mlx.h +MLX = lib/libmlx.a SRCS = src/main.c src/vectors.c @@ -29,6 +29,7 @@ all: $(NAME) $(VERBOSE).SILENT: $(LIBFT): + mkdir -p lib echo "Downloading narnaud/libft and making library" bash -c "if [[ ! -d "libft" ]]; then git clone \ https://git.narnaud.net/nicolas-arnaud/Libft.git libft; fi"