17 lines
430 B
Makefile
17 lines
430 B
Makefile
PLUGINS := tarback/*.sh
|
|
SCRIPT := tarback.sh
|
|
SCRIPT_NAME := $(SCRIPT:.sh=)
|
|
PREFIX ?= /usr/local
|
|
|
|
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 install-bin install-plugins test
|