From: Alexander Barton Date: Mon, 3 Aug 2015 14:23:56 +0000 (+0200) Subject: Create individual Makefile's for all subdirectories X-Git-Url: https://arthur.barton.de/gitweb/?p=backup-script.git;a=commitdiff_plain;h=0c1c6907b4cb64d6bdadbafe0ce51c330f92843c Create individual Makefile's for all subdirectories --- diff --git a/Makefile b/Makefile index 1cbc70e..b807cab 100644 --- a/Makefile +++ b/Makefile @@ -3,16 +3,10 @@ # Copyright (c)2008-2014 Alexander Barton, alex@barton.de # +SUBDIRS = bin etc examples + 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 diff --git a/bin/Makefile b/bin/Makefile new file mode 100644 index 0000000..38c6c3a --- /dev/null +++ b/bin/Makefile @@ -0,0 +1,16 @@ +# +# backup-script system for cloning systems using rsync +# Copyright (c)2008-2015 Alexander Barton +# + +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 index 0000000..34e39df --- /dev/null +++ b/etc/Makefile @@ -0,0 +1,6 @@ +# +# backup-script system for cloning systems using rsync +# Copyright (c)2008-2015 Alexander Barton +# + +include ../Makefile.ax diff --git a/examples/Makefile b/examples/Makefile new file mode 100644 index 0000000..34e39df --- /dev/null +++ b/examples/Makefile @@ -0,0 +1,6 @@ +# +# backup-script system for cloning systems using rsync +# Copyright (c)2008-2015 Alexander Barton +# + +include ../Makefile.ax