-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (36 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
all: up
up: build
@docker-compose -f docker-compose.yml up -d
@docker ps
@echo ""
@echo "http://localhost:5173 for web-serber"
@echo "http://localhost:5555 for prisma studio"
@echo ""
@echo "Please be patient, it can take some time for web-server to be"
build: docker-compose.yml
@sh tools/script.sh
@g++ ./tools/envp-parsing/create_env.cpp ./tools/envp-parsing/main.cpp ./tools/envp-parsing/validate_env.cpp ./tools/envp-parsing/header.hpp
@mv a.out ./tools/env_manager
@./tools/env_manager
@python3 ./tools/api_validation.py
@docker-compose -f docker-compose.yml build
down:
@docker-compose -f docker-compose.yml down
@rm -rf ./tools/env_manager
@rm -rf ./srcs/backend/.env
@rm -rf ./srcs/frontend/src/views/Login/login.42api.tsx
@docker ps
clean:
@docker-compose -f docker-compose.yml down --rmi all
@rm -rf ./tools/env_manager
@rm -rf ./srcs/backend/.env
@rm -rf ./srcs/frontend/src/views/Login/login.42api.tsx
@docker ps
fclean:
@docker-compose -f docker-compose.yml down --rmi all
@rm -rf ./tools/env_manager
@rm -rf ./srcs/backend/.env
@rm -rf ./srcs/frontend/src/views/Login/login.42api.tsx
@docker ps
re: fclean all
.PHONY: all up down build clean vclean fclean re