From 35a4fa28f80e37c4daf89b6c3f024b778c23b1e5 Mon Sep 17 00:00:00 2001 From: redxef Date: Thu, 8 Jun 2023 00:38:14 +0200 Subject: [PATCH] Fix makefile installing main script in plugins directory. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 37cf96d..2779858 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,15 @@ SCRIPT := tarback.sh SCRIPT_NAME := $(SCRIPT:.sh=) PREFIX ?= /usr/local -install: $(SCRIPT) $(PLUGINS) - install -D -t $(PREFIX)/share/tarback -m 0644 -o root -g root $^ +install: install-bin install-plugins + +install-bin: $(SCRIPT) install -D -m 0755 -o root -g root -T $(SCRIPT) $(PREFIX)/bin/$(SCRIPT_NAME) +install-plugins: $(PLUGINS) + install -D -t $(PREFIX)/share/tarback -m 0644 -o root -g root $^ + test: $(SCRIPT) $(PLUGINS) ./test.sh -.PHONY: install test +.PHONY: install install-bin install-plugins test