pika-kernel-manager/Makefile
Ward from fusion-voyager-3 4d9a1c39fb Un fedoraize
2024-08-31 05:10:09 +03:00

60 lines
2.8 KiB
Makefile

all:
true
build:
cargo fetch
cargo build --release
build_debug:
cargo fetch
cargo build --debug
install_no_build:
mkdir -p $(DESTDIR)/usr/bin/
cp -vf target/release/pika-kernel-manager $(DESTDIR)/usr/bin/
chmod 755 $(DESTDIR)/usr/bin/pika-kernel-manager
mkdir -p $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -rvf data/scripts $(DESTDIR)/usr/lib/pika/kernel-manager/
chmod 755 $(DESTDIR)/usr/lib/pika/kernel-manager/scripts/*.sh
cp -rvf data/locales $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -rvf data/kernel_branches $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -vf data/scx_scheds.json $(DESTDIR)/usr/lib/pika/kernel-manager/
mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp -vf data/com.github.pikaos-linux.pika-kernel-manager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/
cp -vf data/com.github.pikaos-linux.pika-kernel-manager.desktop $(DESTDIR)/usr/share/applications/
cp -rvf data/polkit-1 $(DESTDIR)/usr/share/
install_no_build_debug:
mkdir -p $(DESTDIR)/usr/bin/
cp -vf target/debug/pika-kernel-manager $(DESTDIR)/usr/bin/
chmod 755 $(DESTDIR)/usr/bin/pika-kernel-manager
mkdir -p $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -rvf data/scripts $(DESTDIR)/usr/lib/pika/kernel-manager/
chmod 755 $(DESTDIR)/usr/lib/pika/kernel-manager/scripts/*.sh
cp -rvf data/locales $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -rvf data/kernel_branches $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -vf data/scx_scheds.json $(DESTDIR)/usr/lib/pika/kernel-manager/
mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp -vf data/com.github.pikaos-linux.pika-kernel-manager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/
cp -vf data/com.github.pikaos-linux.pika-kernel-manager.desktop $(DESTDIR)/usr/share/applications/
cp -rvf data/polkit-1 $(DESTDIR)/usr/share/
install:
mkdir -p $(DESTDIR)/usr/bin/
cargo fetch
cargo build --release
cp -vf target/release/pika-kernel-manager $(DESTDIR)/usr/bin/
chmod 755 $(DESTDIR)/usr/bin/pika-kernel-manager
mkdir -p $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -rvf data/scripts $(DESTDIR)/usr/lib/pika/kernel-manager/
chmod 755 $(DESTDIR)/usr/lib/pika/kernel-manager/scripts/*.sh
cp -rvf data/locales $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -rvf data/kernel_branches $(DESTDIR)/usr/lib/pika/kernel-manager/
cp -vf data/scx_scheds.json $(DESTDIR)/usr/lib/pika/kernel-manager/
mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp -vf data/com.github.pikaos-linux.pika-kernel-manager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/
cp -vf data/com.github.pikaos-linux.pika-kernel-manager.desktop $(DESTDIR)/usr/share/applications/
cp -rvf data/polkit-1 $(DESTDIR)/usr/share/