From 9211d0e750351f68103a4e2d22bd14da87adeff8 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Wed, 28 Aug 2024 23:53:08 +0300 Subject: [PATCH] add makefile --- Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..799f436 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +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 + 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/ + chmod 755 $(DESTDIR)/usr/bin/pika-gnome-layouts + chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/*.sh + +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 + 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/ + chmod 755 $(DESTDIR)/usr/bin/pika-gnome-layouts + chmod 755 $(DESTDIR)/usr/lib/pika/gnome-layouts/*.sh \ No newline at end of file