]> arthur.barton.de Git - backup-script.git/blobdiff - Makefile
backup-script: Correctly detect empty system directories on Btrfs
[backup-script.git] / Makefile
index f7b3aa402dfcde322e50ecc91e9ee63fb9614b92..fcb1d3ade3b1a021675b2a8e3586ab39ef0c2f0b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,12 @@
 #
 # backup-script system for cloning systems using rsync
-# Copyright (c)2008-2014 Alexander Barton, alex@barton.de
+# Copyright (c)2008-2022 Alexander Barton, alex@barton.de
 #
 
-include ./Makefile.ax
+SUBDIRS = bin etc examples
+
+include ./lib/Makefile.ax
 
 install-local:
-       install -d -o $(USER) -g $(GROUP) -m 755 \
-        $(DESTDIR)$(PREFIX)/sbin
-       install -o $(USER) -g $(GROUP) -m 755 bin/backup-script \
-        $(DESTDIR)$(PREFIX)/sbin/backup-script
-       install -o $(USER) -g $(GROUP) -m 755 bin/backup-script-wrapper \
-        $(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper
-       install -o $(USER) -g $(GROUP) -m 755 bin/backup-status \
-        $(DESTDIR)$(PREFIX)/sbin/backup-status
-       install -d -o $(USER) -g $(GROUP) -m 755 \
-        $(DESTDIR)$(PREFIX)/etc/backup-script.d
-       install -d -o $(USER) -g $(GROUP) -m 755 $(DESTDIR)/etc
-       test -e $(DESTDIR)/etc/backup-script.d \
-        || ln -s $(DESTDIR)$(PREFIX)/etc/backup-script.d \
-             $(DESTDIR)/etc/backup-script.d
+       install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
+        "$(DESTDIR)$(PREFIX)/etc/backup-script.d"