-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
36 lines (29 loc) · 1.01 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
# =============================================================================
# CfxLua CLI Orchestrator Makefile
# =============================================================================
.PHONY: all clean install package-linux package-windows package-deb
all:
@if [ ! -d "core/libs/glm" ]; then \
echo "Initializing submodules..."; \
git submodule update --init --recursive; \
fi
$(MAKE) -C core linux-noreadline -j$$(nproc)
clean:
@if [ -d "core" ]; then $(MAKE) -C core clean; fi
rm -rf dist *.tar.gz *.zip *.deb build/
install:
./install.sh
package-linux:
./build_release.sh
package-deb:
./build_deb.sh
package-windows:
@if [ ! -d "core/libs/glm" ]; then \
echo "Initializing submodules..."; \
git submodule update --init --recursive; \
fi
# Cross-compiling for Windows
$(MAKE) -C core clean
$(MAKE) -C core CC="x86_64-w64-mingw32-g++ -std=c++11" CPP="x86_64-w64-mingw32-g++ -std=c++11" PLAT=mingw -j$$(nproc)
# Package logic should be handled by build_release.sh or similar
./build_release.sh