From 0e1baf425576f91098a4c9629a1556f8110c291f Mon Sep 17 00:00:00 2001 From: redxef Date: Fri, 17 Feb 2023 02:54:33 +0100 Subject: [PATCH] Update makefile, dont install with .sh suffix. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a061869..60a5369 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ -PLUGINS := tarback/*.sh -SCRIPT := tarback.sh +PLUGINS := tarback/*.sh +SCRIPT := tarback.sh +SCRIPT_NAME := $(SCRIPT:.sh=) PREFIX ?= /usr/local install: $(PLUGINS) install -D -t $(PREFIX)/share/tarback -m 0644 -o root -g root $^ - install -D -m 0755 -o root -g root $(SCRIPT) $(PREFIX)/bin/ + install -D -m 0755 -o root -g root -T $(SCRIPT) $(PREFIX)/bin/$(SCRIPT_NAME) .PHONY: install