2024-08-29 06:56:14 +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/pikman-update-manager/scripts/
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/applications
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
|
2024-10-04 19:55:07 +02:00
|
|
|
mkdir -p $(DESTDIR)/etc/xdg/autostart
|
|
|
|
cp -vf target/release/pikman-update-manager $(DESTDIR)/usr/bin/
|
|
|
|
cp -vf data/pikman-update-manager-autostart $(DESTDIR)/usr/bin/
|
2024-10-04 19:29:43 +02:00
|
|
|
cp -vf data/flatpak-installer $(DESTDIR)/usr/bin/
|
|
|
|
cp -vf data/software-properties-gtk $(DESTDIR)/usr/bin/
|
2024-10-19 21:22:28 +02:00
|
|
|
# cp -vf target/release/apt_update $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-11-05 16:57:48 +01:00
|
|
|
# cp -vf target/release/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-10-19 21:22:28 +02:00
|
|
|
cp -vf data/apt_update $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-11-05 16:57:48 +01:00
|
|
|
cp -vf target/release/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/apt_full_upgrade_bin
|
|
|
|
cp -vf data/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-09-22 21:06:45 +02:00
|
|
|
cp -vf data/modify_repo.sh $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-08-29 06:56:14 +02:00
|
|
|
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
|
2024-10-04 19:29:43 +02:00
|
|
|
cp -vf data/com.github.pikaos-linux.pikmanupdatemanager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/
|
|
|
|
cp -vf data/*.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
|
2024-10-04 19:55:07 +02:00
|
|
|
cp -vf data/pikman-update-manager-autostart.desktop $(DESTDIR)/etc/xdg/autostart/
|
2024-10-04 19:29:43 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/bin/pikman-update-manager
|
2024-10-04 19:55:07 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/bin/pikman-update-manager-autostart
|
2024-10-04 19:29:43 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/bin/flatpak-installer
|
|
|
|
chmod 755 $(DESTDIR)/usr/bin/software-properties-gtk
|
2024-09-07 10:44:57 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/*
|
|
|
|
|
|
|
|
install_no_build_debug:
|
|
|
|
mkdir -p $(DESTDIR)/usr/bin/
|
|
|
|
mkdir -p $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/applications
|
|
|
|
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
|
2024-10-04 19:55:07 +02:00
|
|
|
mkdir -p $(DESTDIR)/etc/xdg/autostart
|
2024-09-07 10:44:57 +02:00
|
|
|
cp -vf target/debug/pikman-update-manager $(DESTDIR)/usr/bin/
|
2024-10-04 19:55:07 +02:00
|
|
|
cp -vf data/pikman-update-manager-autostart $(DESTDIR)/usr/bin/
|
2024-10-04 19:29:43 +02:00
|
|
|
cp -vf data/flatpak-installer $(DESTDIR)/usr/bin/
|
|
|
|
cp -vf data/software-properties-gtk $(DESTDIR)/usr/bin/
|
2024-11-05 16:57:48 +01:00
|
|
|
# cp -vf target/release/apt_update $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
|
|
|
# cp -vf target/release/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-10-19 21:22:28 +02:00
|
|
|
cp -vf data/apt_update $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-11-05 16:57:48 +01:00
|
|
|
cp -vf target/release/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/apt_full_upgrade_bin
|
|
|
|
cp -vf data/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-09-22 21:06:45 +02:00
|
|
|
cp -vf data/modify_repo.sh $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
|
2024-09-07 10:44:57 +02:00
|
|
|
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
|
2024-10-04 19:29:43 +02:00
|
|
|
cp -vf data/com.github.pikaos-linux.pikmanupdatemanager.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/
|
|
|
|
cp -vf data/*.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
|
2024-10-04 19:55:07 +02:00
|
|
|
cp -vf data/pikman-update-manager-autostart.desktop $(DESTDIR)/etc/xdg/autostart/
|
2024-09-07 10:44:57 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/bin/pikman-update-manager
|
2024-10-04 19:55:07 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/bin/pikman-update-manager-autostart
|
2024-10-04 19:29:43 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/bin/flatpak-installer
|
|
|
|
chmod 755 $(DESTDIR)/usr/bin/software-properties-gtk
|
2024-08-29 06:56:14 +02:00
|
|
|
chmod 755 $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/*
|