2024-02-20 21:25:25 +01:00
|
|
|
export PATH := "$(PWD):$(PATH)"
|
2024-02-18 18:28:14 +01:00
|
|
|
|
2024-01-23 19:52:28 +01:00
|
|
|
all:
|
|
|
|
true
|
|
|
|
|
|
|
|
install:
|
2024-01-24 20:17:19 +01:00
|
|
|
#mkdir -p $(DESTDIR)/usr/bin/
|
2024-01-23 19:52:28 +01:00
|
|
|
cargo fetch
|
|
|
|
cargo build --release
|
2024-01-24 20:17:19 +01:00
|
|
|
#cp -vf target/release/pika-installer-gtk4 $(DESTDIR)/usr/bin/
|
2024-01-24 20:33:01 +01:00
|
|
|
#chmod 755 $(DESTDIR)/usr/bin/pika-installer-gtk4
|
2024-01-24 20:17:19 +01:00
|
|
|
mkdir -p $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/
|
|
|
|
cp -vf target/release/pika-installer-gtk4 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/
|
2024-01-24 20:33:01 +01:00
|
|
|
chmod 755 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
|
2024-01-23 19:52:28 +01:00
|
|
|
mkdir -p $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
|
|
cp -rvf data/scripts/*.sh $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
2024-08-24 23:23:39 +02:00
|
|
|
#cp -rvf data/scripts/*.py $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
2024-01-23 19:52:28 +01:00
|
|
|
cp data/*.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
|
|
chmod 755 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/*.sh
|
2024-08-24 23:23:39 +02:00
|
|
|
#chmod 755 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/*.py
|
2024-01-23 19:52:28 +01:00
|
|
|
mkdir -p $(DESTDIR)/usr/share/applications
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
|
2024-08-21 23:22:58 +02:00
|
|
|
cp -vf data/com.github.pikaos-linux.pikainstallergtk4.desktop $(DESTDIR)/usr/share/applications/
|
2024-02-20 16:11:38 +01:00
|
|
|
#makepot $(DESTDIR)/usr/share/locale
|
2024-08-04 22:56:30 +02:00
|
|
|
|
|
|
|
install_no_build_debug:
|
|
|
|
#cp -vf target/release/pika-installer-gtk4 $(DESTDIR)/usr/bin/
|
|
|
|
#chmod 755 $(DESTDIR)/usr/bin/pika-installer-gtk4
|
|
|
|
mkdir -p $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/
|
|
|
|
cp -vf target/debug/pika-installer-gtk4 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/
|
|
|
|
chmod 755 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/bin/pika-installer-gtk4
|
|
|
|
mkdir -p $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
|
|
cp -rvf data/scripts/*.sh $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
2024-08-24 23:23:39 +02:00
|
|
|
#cp -rvf data/scripts/*.py $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/
|
2024-08-04 22:56:30 +02:00
|
|
|
cp data/*.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
|
|
chmod 755 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/*.sh
|
2024-08-24 23:23:39 +02:00
|
|
|
#chmod 755 $(DESTDIR)/usr/lib/pika/pika-installer-gtk4/scripts/*.py
|
2024-08-04 22:56:30 +02:00
|
|
|
mkdir -p $(DESTDIR)/usr/share/applications
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
|
2024-08-21 23:22:58 +02:00
|
|
|
cp -vf data/com.github.pikaos-linux.pikainstallergtk4.desktop $(DESTDIR)/usr/share/applications/
|
2024-08-04 22:56:30 +02:00
|
|
|
#makepot $(DESTDIR)/usr/share/locale
|