diff bing4desktop/Makefile @ 13:73fd89b46da4

bing4desktop-0.240206-3
author prymula <prymula76@outlook.com>
date Tue, 06 Feb 2024 17:47:04 +0100
parents c01d7edb9cb9
children 3b8fd6a7f2d0
line wrap: on
line diff
--- a/bing4desktop/Makefile	Tue Feb 06 12:01:38 2024 +0100
+++ b/bing4desktop/Makefile	Tue Feb 06 17:47:04 2024 +0100
@@ -1,17 +1,23 @@
 prefix=/usr
+MYDIR=/home
 
 install: bing4desktop.py
-	mkdir -pm 0755 $(DESTDIR)$(prefix)/bin
-	mkdir -pm 0755 $(DESTDIR)$(prefix)/share/bing4desktop
-	mkdir -pm 0755 $(DESTDIR)/etc/xdg/autostart
-	install -m 0755 bing4desktop.py $(DESTDIR)$(prefix)/bin
-	install -m 0644 bing.ico $(DESTDIR)$(prefix)/share/bing4desktop
-	install -m 0644 bing4desktop.desktop $(DESTDIR)/etc/xdg/autostart
+	mkdir -pm 0755 $(prefix)/bin
+	mkdir -pm 0755 $(prefix)/share/bing4desktop
+	#mkdir -pm 0755 /etc/xdg/autostart
+	install -m 0755 bing4desktop.py $(prefix)/bin
+	install -m 0644 bing.ico $(prefix)/share/bing4desktop
+	install -m 0644 bing.png $(prefix)/share/bing4desktop
+	install -m 0644 bing4desktop.desktop $(prefix)/share/applications
+	$(shell ./copy_desktop.sh)
 .PHONY: install
 
 uninstall:
 	rm $(prefix)/bin/bing4desktop.py
 	rm $(prefix)/share/bing4desktop/bing.ico
-	rm /etc/xdg/autostart/bing4desktop.desktop
+	rm $(prefix)/share/bing4desktop/bing.png
+	rm $(prefix)/share/applications/bing4desktop.desktop
+	#rm /etc/xdg/autostart/bing4desktop.desktop
 	rmdir $(prefix)/share/bing4desktop/
+	$(shell ./copy_desktop.sh)
 .PHONY: uninstall