tarback/Makefile
redxef 482da4b833
Add tests.
Fix single-file archiving.
2023-06-07 13:21:53 +02:00

13 lines
342 B
Makefile

PLUGINS := tarback/*.sh
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 -D -m 0755 -o root -g root -T $(SCRIPT) $(PREFIX)/bin/$(SCRIPT_NAME)
test: $(SCRIPT) $(PLUGINS)
./test.sh
.PHONY: install test