]> arthur.barton.de Git - backup-script.git/blob - bin/Makefile
Makefile: Properly quote path, user and group names
[backup-script.git] / bin / Makefile
1 #
2 # backup-script system for cloning systems using rsync
3 # Copyright (c)2008-2022 Alexander Barton <alex@barton.de>
4 #
5
6 include ../lib/Makefile.ax
7
8 install-local:
9         install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
10          "$(DESTDIR)$(PREFIX)/sbin"
11         install -o "$(USER)" -g "$(GROUP)" -m 755 backup-script \
12          "$(DESTDIR)$(PREFIX)/sbin/backup-script"
13         install -o "$(USER)" -g "$(GROUP)" -m 755 backup-script-wrapper \
14          "$(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper"
15         install -o "$(USER)" -g "$(GROUP)" -m 755 backup-status \
16          "$(DESTDIR)$(PREFIX)/sbin/backup-status"
17         install -o "$(USER)" -g "$(GROUP)" -m 755 backup-audit \
18          "$(DESTDIR)$(PREFIX)/sbin/backup-audit"
19
20 check-local:
21         ./backup-script --help 2>&1 | grep -F 'Usage: ' >/dev/null
22         ./backup-script --help 2>&1 | grep -F 'Configuration file is "' >/dev/null
23         ./backup-status --help | grep -F 'Usage: ' >/dev/null
24         ./backup-audit --help | grep -F 'Usage: ' >/dev/null