-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (51 loc) · 2.23 KB
/
Copy pathMakefile
File metadata and controls
63 lines (51 loc) · 2.23 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: all clean
export SPRING_VERSION = ../SpringPP/spring-0.82.5.1_official
# Try to find Spring folder
ifeq ($(wildcard $(SPRING_VERSION)),)
INSTALL_PP = not_found
else
INSTALL_PP = install_pp
endif
ifeq ($(OS),Windows_NT)
ECHO_OPT = -e
else
ECHO_OPT =
endif
YELLOW = \033[0;33m
GREEN = \033[0;32m
DEFAULT_COLOR = \033[0m
all: compile_pp $(INSTALL_PP) compile_client_interfaces end
compile_pp:
@echo "==============================================================================="
@echo "= Prog&Play Compilation ="
@echo "==================================== (MAKE) ==================================="
@(cd ./pp && $(MAKE))
install_pp:
@echo ""
@echo "==============================================================================="
@echo "= Prog&Play Installation ="
@echo "================================ (MAKE INSTALL) ==============================="
@(cd ./pp && $(MAKE) install)
not_found:
@echo ""
@echo "==============================================================================="
@echo "= Prog&Play Installation ="
@echo "================================ (MAKE INSTALL) ==============================="
@echo $(ECHO_OPT) "$(YELLOW)Installation aborted: $(SPRING_VERSION) doesn't exist.\nCheck if the target directory exists or update SPRING_VERSION value defined into this Makefile in agreement with your folder organisation.$(DEFAULT_COLOR)"
compile_client_interfaces:
@echo ""
@echo "==============================================================================="
@echo "= Client Interfaces Compilation ="
@echo "==============================================================================="
@(cd ./Client_Interfaces && $(MAKE))
end:
@echo ""
@echo $(ECHO_OPT) "$(GREEN)Compilation succeed.$(DEFAULT_COLOR)"
@echo ""
clean:
@echo "Prog&Play cleaning ==================================================="
@(cd ./pp && $(MAKE) $@)
@echo "Client Interfaces cleaning =========================================="
@(cd ./Client_Interfaces && $(MAKE) $@)
@echo $(ECHO_OPT) "$(GREEN)Cleaning succeed.$(DEFAULT_COLOR)"
@echo ""