From 4c5fb30e76af4edce9d8ba1f33abcb021285ee76 Mon Sep 17 00:00:00 2001 From: Kaley Fischer Date: Wed, 3 Jan 2024 03:50:01 +0100 Subject: [PATCH] Update: added a makefile --- CMakeLists.txt | 0 LICENSE | 0 Makefile | 25 +++++++++++++++++++++++++ README.md | 0 flake.lock | 0 flake.nix | 0 hyprload.toml | 0 7 files changed, 25 insertions(+) mode change 100644 => 100755 CMakeLists.txt mode change 100644 => 100755 LICENSE create mode 100644 Makefile mode change 100644 => 100755 README.md mode change 100644 => 100755 flake.lock mode change 100644 => 100755 flake.nix mode change 100644 => 100755 hyprload.toml diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d27dcdb --- /dev/null +++ b/Makefile @@ -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: diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/flake.lock b/flake.lock old mode 100644 new mode 100755 diff --git a/flake.nix b/flake.nix old mode 100644 new mode 100755 diff --git a/hyprload.toml b/hyprload.toml old mode 100644 new mode 100755