hy3/Makefile

26 lines
611 B
Makefile
Raw Normal View History

2024-01-03 03:50:01 +01:00
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: