mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 10:43:40 +01:00
Update: added a makefile
This commit is contained in:
parent
df59286237
commit
4c5fb30e76
7 changed files with 25 additions and 0 deletions
0
CMakeLists.txt
Normal file → Executable file
0
CMakeLists.txt
Normal file → Executable file
0
LICENSE
Normal file → Executable file
0
LICENSE
Normal file → Executable file
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:
|
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
0
flake.lock
generated
Normal file → Executable file
0
flake.lock
generated
Normal file → Executable file
0
flake.nix
Normal file → Executable file
0
flake.nix
Normal file → Executable file
0
hyprload.toml
Normal file → Executable file
0
hyprload.toml
Normal file → Executable file
Loading…
Add table
Reference in a new issue