]> arthur.barton.de Git - backup-script.git/commitdiff
Create individual Makefile's for all subdirectories
authorAlexander Barton <alex@barton.de>
Mon, 3 Aug 2015 14:23:56 +0000 (16:23 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 3 Aug 2015 14:23:56 +0000 (16:23 +0200)
Makefile
bin/Makefile [new file with mode: 0644]
etc/Makefile [new file with mode: 0644]
examples/Makefile [new file with mode: 0644]

index 1cbc70e704f8fc583da70c4051c34eee8477b1fe..b807cab2aa22d343b0b19bb0e0e911c0a51af793 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,16 +3,10 @@
 # Copyright (c)2008-2014 Alexander Barton, alex@barton.de
 #
 
 # Copyright (c)2008-2014 Alexander Barton, alex@barton.de
 #
 
+SUBDIRS = bin etc examples
+
 include ./Makefile.ax
 
 install-local:
 include ./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)$(PREFIX)/etc/backup-script.d
diff --git a/bin/Makefile b/bin/Makefile
new file mode 100644 (file)
index 0000000..38c6c3a
--- /dev/null
@@ -0,0 +1,16 @@
+#
+# backup-script system for cloning systems using rsync
+# Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
+#
+
+include ../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
diff --git a/etc/Makefile b/etc/Makefile
new file mode 100644 (file)
index 0000000..34e39df
--- /dev/null
@@ -0,0 +1,6 @@
+#
+# backup-script system for cloning systems using rsync
+# Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
+#
+
+include ../Makefile.ax
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644 (file)
index 0000000..34e39df
--- /dev/null
@@ -0,0 +1,6 @@
+#
+# backup-script system for cloning systems using rsync
+# Copyright (c)2008-2015 Alexander Barton <alex@barton.de>
+#
+
+include ../Makefile.ax