From fc397ad56bb3b65045968d9ec64522960493496a Mon Sep 17 00:00:00 2001 From: q3aql Date: Sat, 27 Mar 2021 17:35:18 +0100 Subject: [PATCH] Makefile --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..14c1065 --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +############################## +# Installing zenigrub-custom # +############################## + +PREFIX=/usr + +install: + mkdir -p /opt/zenigrub-custom + cp -rf src/zenigrub-custom /opt/zenigrub-custom/zenigrub-custom + cp -rf src/zenigrub-custom-admin /opt/zenigrub-custom/zenigrub-custom-admin + cp -rf icon/zenigrub-custom.png /opt/zenigrub-custom/zenigrub-custom.png + cp -rf src/zenigrub-custom.desktop $(PREFIX)/share/applications/zenigrub-custom.desktop + ln -s /opt/zenigrub-custom/zenigrub-custom $(PREFIX)/bin/zenigrub-custom + chmod +x $(PREFIX)/bin/zenigrub-custom + chmod +x /opt/zenigrub-custom/zenigrub-custom + chmod +x /opt/zenigrub-custom/zenigrub-custom-admin + chmod +x $(PREFIX)/share/applications/zenigrub-custom.desktop + +install-es: + mkdir -p /opt/zenigrub-custom + cp -rf src-ES/zenigrub-custom /opt/zenigrub-custom/zenigrub-custom + cp -rf src-ES/zenigrub-custom-admin /opt/zenigrub-custom/zenigrub-custom-admin + cp -rf icon/zenigrub-custom.png /opt/zenigrub-custom/zenigrub-custom.png + cp -rf src-ES/zenigrub-custom.desktop $(PREFIX)/share/applications/zenigrub-custom.desktop + ln -s /opt/zenigrub-custom/zenigrub-custom $(PREFIX)/bin/zenigrub-custom + chmod +x $(PREFIX)/bin/zenigrub-custom + chmod +x /opt/zenigrub-custom/zenigrub-custom + chmod +x /opt/zenigrub-custom/zenigrub-custom-admin + chmod +x $(PREFIX)/share/applications/zenigrub-custom.desktop + +uninstall: + rm -rf /opt/zenigrub-custom + rm -rf $(PREFIX)/bin/zenigrub-custom + rm $(PREFIX)/share/applications/zenigrub-custom.desktop +