Fix makefile installing main script in plugins directory.
This commit is contained in:
parent
08e3026afa
commit
35a4fa28f8
1 changed files with 7 additions and 3 deletions
10
Makefile
10
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
|
||||
|
|
Loading…
Reference in a new issue