From 87ac4d53ecc59a0c2777748a7f43142f0affa614 Mon Sep 17 00:00:00 2001 From: DCoderUltra <82941044+DCoderUltra@users.noreply.github.com> Date: Sat, 29 Jun 2024 13:02:29 +0000 Subject: [PATCH] Unifying Local and Global Instalation - Makefile update Added two extra options on the make file. - Install/Uninstall on a directory given by the user. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 2e453d9..22a1915 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,11 @@ uninstall: @rm -rf $(DESTDIR)$(BINDIR)/fontpreview @rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(BINDIR) @echo fontpreview has been removed from your device + +local_install: + @read -p "Local binaries path: " lbin_path && ln -sf $$(pwd)/fontpreview $$lbin_path + @echo fontpreview has been locally installed on your device + +local_uninstall: + @read -p "Local binaries path: " lbin_path && rm -f $$lbin_path/fontpreview + @echo fontpreview has been locally uninstalled from your device