update: scaffolding for nginx

This commit is contained in:
maix0 2025-06-12 18:35:04 +02:00
parent d89dd4f315
commit fb48a0fa04
7 changed files with 163 additions and 24 deletions

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2025/06/11 18:46:40 by maiboyer ### ########.fr #
# Updated: 2025/06/12 18:34:44 by maiboyer ### ########.fr #
# #
# **************************************************************************** #
@ -18,11 +18,13 @@ NAME=webserv
# Colors
GREEN = \033[32m
BLACK = \033[30m
CYAN = \033[36m
GREY = \033[0;90m
RED = \033[0;31m
GOLD = \033[38;5;220m
BROWN = \033[38;2;100;65;23m
WHITE = \033[38;2;255;255;255m
END = \033[0m
BOLD = \033[1m
ITALIC = \033[3m
@ -31,19 +33,24 @@ UNDERLINE = \033[4m
BASE_PATH=$(shell realpath .)
ECHO = /usr/bin/env echo
PMAKE =
ifndef PMAKE_DISABLE
ifeq ($(shell uname), Linux)
PMAKE = -j$(shell grep -c ^processor /proc/cpuinfo)
endif
ifeq ($(shell uname), Darwin)
PMAKE = -j$(shell sysctl -n hw.ncpu)
endif
endif
all:
@$(MAKE) --no-print-directory header
@$(MAKE) --no-print-directory -f ./Docker.mk $(PMAKE)
@$(MAKE) --no-print-directory -f ./Docker.mk
@$(MAKE) --no-print-directory footer
down:
@$(MAKE) --no-print-directory header
@$(MAKE) --no-print-directory -f ./Docker.mk down
@$(MAKE) --no-print-directory footer
clean:
@$(MAKE) --no-print-directory header
@$(MAKE) --no-print-directory -f ./Docker.mk clean
@$(MAKE) --no-print-directory footer
prune:
@$(MAKE) --no-print-directory header
@$(MAKE) --no-print-directory -f ./Docker.mk prune
@$(MAKE) --no-print-directory footer
$(NAME): all
@ -72,7 +79,7 @@ footer:
@$(ECHO) -e '$(GREEN) , \\ / , $(END)'
@$(ECHO) -e '$(GREEN) / \\ )\\__/( / \\ $(END)'
@$(ECHO) -e '$(GREEN) / \\ (_\\ /_) / \\ $(END)'
@$(ECHO) -e '$(BROWN) ____$(GREEN)/$(BROWN)_____$(GREEN)\\$(BROWN)__$(GREEN)\\@ @/$(BROWN)___$(GREEN)/$(BROWN)_____$(GREEN)\\$(BROWN)____ $(END)'
@$(ECHO) -e '$(BROWN) ____$(GREEN)/$(BROWN)_____$(GREEN)\\$(BROWN)__$(GREEN)\\$(WHITE)@ @$(GREEN)/$(BROWN)___$(GREEN)/$(BROWN)_____$(GREEN)\\$(BROWN)____ $(END)'
@$(ECHO) -e '$(BROWN) | $(GREEN)|\\../| $(BROWN) | $(END)'
@$(ECHO) -e '$(BROWN) | $(GREEN) \\$(RED)vv$(GREEN)/ $(BROWN) | $(END)'
@$(ECHO) -e '$(BROWN) | $(PROJECT__NAME)$(BROWN) | $(END)'
@ -85,17 +92,9 @@ footer:
@$(ECHO) -e '$(GREY) The compilation is $(END)$(GOLD)finished$(END)'
@$(ECHO) -e '$(GREY) Have a good $(END)$(GOLD)correction$(END)'
# Clean (make clean)
clean:
@$(ECHO) -e '$(GREY) Removing $(END)$(RED)Data dir$(END)'
# Clean (make fclean)
fclean: clean
@$(ECHO) -e '$(GREY) Removing $(END)$(RED)Program$(END)'
# Restart (make re)
re:
@$(MAKE) --no-print-directory fclean
@$(MAKE) --no-print-directory clean
@$(MAKE) --no-print-directory all
tokei: