Update: added a makefile

This commit is contained in:
Kaley, Fischer 2024-01-03 03:50:01 +01:00
parent df59286237
commit 4c5fb30e76
7 changed files with 25 additions and 0 deletions

0
CMakeLists.txt Normal file → Executable file
View file

0
LICENSE Normal file → Executable file
View file

25
Makefile Normal file
View 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:

0
README.md Normal file → Executable file
View file

0
flake.lock generated Normal file → Executable file
View file

0
flake.nix Normal file → Executable file
View file

0
hyprload.toml Normal file → Executable file
View file