]> arthur.barton.de Git - backup-script.git/blobdiff - bin/Makefile
Makefile: Properly quote path, user and group names
[backup-script.git] / bin / Makefile
index b9048d6d2836b97ffe83cd3447d5bbb9a8c163f1..b25ef668d15c32fa0155a975cb01e7c01925b568 100644 (file)
@@ -1,20 +1,24 @@
 #
 # backup-script system for cloning systems using rsync
-# Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
+# Copyright (c)2008-2022 Alexander Barton <alex@barton.de>
 #
 
 include ../lib/Makefile.ax
 
 install-local:
-       install -d -o $(USER) -g $(GROUP) -m 755 \
-        $(DESTDIR)$(PREFIX)/sbin
-       install -o $(USER) -g $(GROUP) -m 755 backup-script \
-        $(DESTDIR)$(PREFIX)/sbin/backup-script
-       install -o $(USER) -g $(GROUP) -m 755 backup-script-wrapper \
-        $(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper
-       install -o $(USER) -g $(GROUP) -m 755 backup-status \
-        $(DESTDIR)$(PREFIX)/sbin/backup-status
+       install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
+        "$(DESTDIR)$(PREFIX)/sbin"
+       install -o "$(USER)" -g "$(GROUP)" -m 755 backup-script \
+        "$(DESTDIR)$(PREFIX)/sbin/backup-script"
+       install -o "$(USER)" -g "$(GROUP)" -m 755 backup-script-wrapper \
+        "$(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper"
+       install -o "$(USER)" -g "$(GROUP)" -m 755 backup-status \
+        "$(DESTDIR)$(PREFIX)/sbin/backup-status"
+       install -o "$(USER)" -g "$(GROUP)" -m 755 backup-audit \
+        "$(DESTDIR)$(PREFIX)/sbin/backup-audit"
 
 check-local:
-       ./backup-script --help | fgrep 'Usage' >/dev/null
-       ./backup-script --help | fgrep 'Configuration file' >/dev/null
+       ./backup-script --help 2>&1 | grep -F 'Usage: ' >/dev/null
+       ./backup-script --help 2>&1 | grep -F 'Configuration file is "' >/dev/null
+       ./backup-status --help | grep -F 'Usage: ' >/dev/null
+       ./backup-audit --help | grep -F 'Usage: ' >/dev/null