-
Notifications
You must be signed in to change notification settings - Fork 373
/
Makefile
77 lines (63 loc) · 2.78 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.PHONY: all clean debug clean_debug release clean_release update docker_all docker_debug docker_release podman_all podman_debug podman_release dist
all: debug release dist
clean: clean_debug clean_release
debug:
cd ReClass.NET_Launcher && make debug
cd ReClass.NET && make debug
cd NativeCore/Unix && make debug
clean_debug:
cd ReClass.NET_Launcher && make clean_debug
cd ReClass.NET && make clean_debug
cd NativeCore/Unix && make clean_debug
rm -rf build/Debug
release:
cd ReClass.NET_Launcher && make release
cd ReClass.NET && make release
cd NativeCore/Unix && make release
clean_release:
cd ReClass.NET_Launcher && make clean_release
cd ReClass.NET && make clean_release
cd NativeCore/Unix && make clean_release
rm -rf build/Release
update:
cd ReClass.NET && make update
docker_all:
make docker_debug
make docker_release
make dist
docker_debug:
cd ReClass.NET_Launcher && make docker_debug
cd ReClass.NET && make docker_debug
docker container run --rm -v ${PWD}:/build:z -w /build -u $(shell id -u ${USER}):$(shell id -g ${USER}) gcc_multilib:latest bash -c "cd NativeCore/Unix && make debug"
docker_release:
cd ReClass.NET_Launcher && make docker_release
cd ReClass.NET && make docker_release
docker container run --rm -v ${PWD}:/build:z -w /build -u $(shell id -u ${USER}):$(shell id -g ${USER}) gcc_multilib:latest bash -c "cd NativeCore/Unix && make release"
podman_all:
make podman_debug
make podman_release
make dist
podman_debug:
cd ReClass.NET_Launcher && make podman_debug
cd ReClass.NET && make podman_debug
podman container run --rm -v ${PWD}:/build:z -w /build gcc_multilib:latest bash -c "cd NativeCore/Unix && make debug"
podman_release:
cd ReClass.NET_Launcher && make podman_release
cd ReClass.NET && make podman_release
podman container run --rm -v ${PWD}:/build:z -w /build gcc_multilib:latest bash -c "cd NativeCore/Unix && make release"
dist:
test -d build || mkdir -p build
cp -r ReClass.NET/bin/* build/
cp -r ReClass.NET_Launcher/bin/* build/
cp NativeCore/Unix/build/debug/x86/NativeCore.so build/Debug/x86
cp NativeCore/Unix/build/debug/x64/NativeCore.so build/Debug/x64
cp NativeCore/Unix/build/release/x86/NativeCore.so build/Release/x86
cp NativeCore/Unix/build/release/x64/NativeCore.so build/Release/x64
test -d build/Debug/x86/Plugins || mkdir build/Debug/x86/Plugins
test -d build/Debug/x64/Plugins || mkdir build/Debug/x64/Plugins
test -d build/Release/x86/Plugins || mkdir build/Release/x86/Plugins
test -d build/Release/x64/Plugins || mkdir build/Release/x64/Plugins
test -d build/Debug/x86 && cp -r Dependencies/x86/* build/Debug/x86
test -d build/Debug/x64 && cp -r Dependencies/x64/* build/Debug/x64
test -d build/Release/x86 && cp -r Dependencies/x86/* build/Release/x86
test -d build/Release/x64 && cp -r Dependencies/x64/* build/Release/x64