Update makefile, dont install with .sh suffix.

This commit is contained in:
redxef 2023-02-17 02:54:33 +01:00
parent 4cf714ce5c
commit 0e1baf4255
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -1,9 +1,10 @@
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