Fix makefile installing main script in plugins directory.

This commit is contained in:
redxef 2023-06-08 00:38:14 +02:00
parent 08e3026afa
commit 35a4fa28f8
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -3,11 +3,15 @@ SCRIPT := tarback.sh
SCRIPT_NAME := $(SCRIPT:.sh=) SCRIPT_NAME := $(SCRIPT:.sh=)
PREFIX ?= /usr/local PREFIX ?= /usr/local
install: $(SCRIPT) $(PLUGINS) install: install-bin install-plugins
install -D -t $(PREFIX)/share/tarback -m 0644 -o root -g root $^
install-bin: $(SCRIPT)
install -D -m 0755 -o root -g root -T $(SCRIPT) $(PREFIX)/bin/$(SCRIPT_NAME) 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: $(SCRIPT) $(PLUGINS)
./test.sh ./test.sh
.PHONY: install test .PHONY: install install-bin install-plugins test