pika-gnome-layouts/Makefile

42 lines
2.0 KiB
Makefile
Raw Permalink Normal View History

2024-08-28 22:53:08 +02:00
export PATH := "$(PWD):$(PATH)"
all:
true
install:
cargo fetch
cargo build --release
mkdir -p $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/lib/pika/gnome-layouts
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp -vf target/release/pika-gnome-layouts $(DESTDIR)/usr/bin/
cp -vf data/scripts/*.sh $(DESTDIR)/usr/lib/pika/gnome-layouts
2024-08-29 00:07:32 +02:00
cp -vf data/scripts/papirus-folders $(DESTDIR)/usr/lib/pika/gnome-layouts
2024-08-28 22:53:08 +02:00
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/
cp -vfr data/layout-scripts $(DESTDIR)/usr/lib/pika/gnome-layouts/
2024-08-29 00:07:32 +02:00
cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
2024-08-28 22:53:08 +02:00
chmod 755 $(DESTDIR)/usr/bin/pika-gnome-layouts
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/*.sh
2024-08-29 00:07:32 +02:00
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/layout-scripts/*.sh
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/papirus-folders
2024-08-28 22:53:08 +02:00
install_no_build_debug:
mkdir -p $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/lib/pika/gnome-layouts
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp -vf target/debug/pika-gnome-layouts $(DESTDIR)/usr/bin/
cp -vf data/scripts/*.sh $(DESTDIR)/usr/lib/pika/gnome-layouts
2024-08-29 00:07:32 +02:00
cp -vf data/scripts/papirus-folders $(DESTDIR)/usr/lib/pika/gnome-layouts
2024-08-28 22:53:08 +02:00
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/
cp -vfr data/layout-scripts $(DESTDIR)/usr/lib/pika/gnome-layouts/
2024-08-29 00:07:32 +02:00
cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
2024-08-28 22:53:08 +02:00
chmod 755 $(DESTDIR)/usr/bin/pika-gnome-layouts
2024-08-29 00:07:32 +02:00
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/*.sh
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/layout-scripts/*.sh
chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/papirus-folders