mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 02:33:40 +01:00
fix
This commit is contained in:
parent
7abc6f72a9
commit
aa50c3e82d
1 changed files with 25 additions and 0 deletions
25
Makefile
Normal file
25
Makefile
Normal file
|
@ -0,0 +1,25 @@
|
|||
NAME = hy3
|
||||
PREFIX = /usr
|
||||
|
||||
all:
|
||||
$(MAKE) clear
|
||||
$(MAKE) release
|
||||
|
||||
release:
|
||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DLEGACY_RENDERER:BOOL=true -S . -B ./build -G Ninja
|
||||
cmake --build ./build
|
||||
chmod -R 777 ./build
|
||||
|
||||
clear:
|
||||
rm -rf build
|
||||
|
||||
install.core:
|
||||
@if [ ! -f ./build/libhy3.so ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
|
||||
@echo -en "!NOTE: Please note make install does not compile Hy3 and only installs the already built files."
|
||||
mkdir -p ${PREFIX}/lib
|
||||
cp -f ./build/libhy3.so ${PREFIX}/lib
|
||||
chmod 755 ${PREFIX}/lib/libhy3.so
|
||||
|
||||
install: install.core
|
||||
|
||||
uninstall:
|
Loading…
Add table
Reference in a new issue