add Makefile, update README

This commit is contained in:
E. S 2025-05-25 03:23:23 +03:00
parent 423f8ce989
commit 38b79e6929
2 changed files with 36 additions and 2 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MODE = 755
SCRIPT = rlmariabackup
.PHONY: all install
all:
@echo "Run 'make install' to install rlmariabackup"
install:
install -d $(BINDIR)
install -m $(MODE) $(SCRIPT) $(BINDIR)/
@echo "rlmariabackup has been installed to $(BINDIR)"

View File

@ -1,5 +1,25 @@
# rlmariabackup # rlmariabackup
# License A shell script utility for managing MariaDB backups.
BSD-2-Clause ## Installation
You can install rlmariabackup using the provided Makefile:
```
make install
```
This will install the script to `/usr/local/bin`. If you want to install to a different location, you can specify the PREFIX:
```
make install PREFIX=/opt
```
## Usage
Run `rlmariabackup help` to see available commands and options.
## License
BSD-2-Clause