2023-02-17 02:54:33 +01:00
|
|
|
PLUGINS := tarback/*.sh
|
|
|
|
SCRIPT := tarback.sh
|
|
|
|
SCRIPT_NAME := $(SCRIPT:.sh=)
|
2023-02-17 02:35:13 +01:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
|
2023-06-08 00:38:14 +02:00
|
|
|
install: install-bin install-plugins
|
|
|
|
|
|
|
|
install-bin: $(SCRIPT)
|
2023-02-17 02:54:33 +01:00
|
|
|
install -D -m 0755 -o root -g root -T $(SCRIPT) $(PREFIX)/bin/$(SCRIPT_NAME)
|
2023-02-17 02:35:13 +01:00
|
|
|
|
2023-06-08 00:38:14 +02:00
|
|
|
install-plugins: $(PLUGINS)
|
|
|
|
install -D -t $(PREFIX)/share/tarback -m 0644 -o root -g root $^
|
|
|
|
|
2023-06-07 13:21:53 +02:00
|
|
|
test: $(SCRIPT) $(PLUGINS)
|
|
|
|
./test.sh
|
|
|
|
|
2023-06-08 00:38:14 +02:00
|
|
|
.PHONY: install install-bin install-plugins test
|