From c89092ccce1da7f047220f4595bd7698db15080d Mon Sep 17 00:00:00 2001 From: Babilinx Date: Wed, 12 Jul 2023 14:47:44 +0200 Subject: [PATCH] feat: Add targets to makefile Add targets: - squirrel: install squirrel - hazel: install hazel - update: pull changes from github and update any already installed script --- Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 80f3a1b..f30cfea 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,24 @@ install: cp scripts/squirrel/squirrel.sh $(DESTDIR)/usr/bin/squirrel chmod +x $(DESTDIR)/usr/bin/squirrel cp scripts/hazel/hazel.sh $(DESTDIR)/usr/bin/hazel - chmod +x $(DESTDIR)/usr/bin/hazel \ No newline at end of file + chmod +x $(DESTDIR)/usr/bin/hazel + +squirrel: + mkdir -p $(DESTDIR)/usr/bin + install -T scripts/stadd/stadd.sh $(DESTDIR)/usr/bin/stadd + install -T scripts/stdel/stdel.sh $(DESTDIR)/usr/bin/stdel + install -T scripts/squirrel/squirrel.sh $(DESTDIR)/usr/bin/squirrel + +hazel: + mkdir -p $(DESTDIR)/usr/bin + install -T scripts/stadd/stadd.sh $(DESTDIR)/usr/bin/stadd + install -T scripts/squirrel/squirrel.sh $(DESTDIR)/usr/bin/squirrel + install -T scripts/hazel/hazel.sh $(DESTDIR)/usr/bin/hazel + +update: + git pull + [[ -e $(DESTDIR)/usr/bin/stadd ]] && install -T scripts/stadd/stadd.sh $(DESTDIR)/usr/bin/stadd + [[ -e $(DESTDIR)/usr/bin/stdel ]] && install -T scripts/stdel/stdel.sh $(DESTDIR)/usr/bin/stdel + [[ -e $(DESTDIR)/usr/bin/stmk ]] && install -T scripts/stmk/stmk.sh $(DESTDIR)/usr/bin/stmk + [[ -e $(DESTDIR)/usr/bin/squirrel ]] && install -T scripts/squirrel/squirrel.sh $(DESTDIR)/usr/bin/squirrel + [[ -e $(DESTDIR)/usr/bin/hazel ]] && install -T scripts/hazel/hazel.sh $(DESTDIR)/usr/bin/hazel