Browse Source

missing lib folder

master
nicolas-arnaud 2 years ago
parent
commit
57ee6ad669
  1. 2
      .gitignore
  2. 3
      Makefile

2
.gitignore

@ -8,6 +8,8 @@
!mlx_mac/ !mlx_mac/
!mlx_mac/* !mlx_mac/*
!lib/
!includes/ !includes/
!cub3d.h !cub3d.h
!mlx_keycode.h !mlx_keycode.h

3
Makefile

@ -1,6 +1,6 @@
NAME = cub3d NAME = cub3d
LIBFT = lib/libft.a LIBFT = lib/libft.a
MLX = includes/mlx.h MLX = lib/libmlx.a
SRCS = src/main.c src/vectors.c SRCS = src/main.c src/vectors.c
@ -29,6 +29,7 @@ all: $(NAME)
$(VERBOSE).SILENT: $(VERBOSE).SILENT:
$(LIBFT): $(LIBFT):
mkdir -p lib
echo "Downloading narnaud/libft and making library" echo "Downloading narnaud/libft and making library"
bash -c "if [[ ! -d "libft" ]]; then git clone \ bash -c "if [[ ! -d "libft" ]]; then git clone \
https://git.narnaud.net/nicolas-arnaud/Libft.git libft; fi" https://git.narnaud.net/nicolas-arnaud/Libft.git libft; fi"

Loading…
Cancel
Save