Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # Ensures submodules are cloned
- run: git submodule update --init --recursive
- run: make
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/libft"]
path = lib/libft
url = git@github.com:Alphacharge/mylibft.git
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ endif
all: $(LIBFT_F) $(NAME)

lsan: clean_lsan $(OBJ_D) $(LIBFT_F) $(LSAN_F)
@$(MAKE) -j $(NAME)
@$(MAKE) -s -j $(NAME)

gprof: all
./ft_ls -aR /
Expand All @@ -90,10 +90,11 @@ $(OBJ_D):

$(LIBFT_F): message
ifneq ($(shell test -d $(LIBFT_D) && echo exists), exists)
@echo "$(GREEN)Clone libft ...$(WHITE)"
@git clone -q --branch v1.0.3 --recurse-submodules $(LIBFT_U) $(LIBFT_D)
@echo "$(RED)Submodule directory is missing! Initializing submodule...$(WHITE)"
@git submodule update --init --recursive
endif
@$(MAKE) -j -C $(LIBFT_D)
@echo "$(GREEN)Building libft ...$(WHITE)"
@$(MAKE) -s -j -C $(LIBFT_D)

$(LSAN_F):
ifneq ($(shell test -d $(LSAN_D) && echo exists), exists)
Expand Down
1 change: 1 addition & 0 deletions lib/libft
Submodule libft added at 82ac52
674 changes: 0 additions & 674 deletions lib/libft/LICENSE

This file was deleted.

80 changes: 0 additions & 80 deletions lib/libft/Makefile

This file was deleted.

102 changes: 0 additions & 102 deletions lib/libft/README.md

This file was deleted.

26 changes: 0 additions & 26 deletions lib/libft/ft_arraycount.c

This file was deleted.

48 changes: 0 additions & 48 deletions lib/libft/ft_atod.c

This file was deleted.

42 changes: 0 additions & 42 deletions lib/libft/ft_atoi.c

This file was deleted.

42 changes: 0 additions & 42 deletions lib/libft/ft_atol.c

This file was deleted.

Loading