From 0c1c6907b4cb64d6bdadbafe0ce51c330f92843c Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 3 Aug 2015 16:23:56 +0200 Subject: [PATCH] Create individual Makefile's for all subdirectories --- Makefile | 10 ++-------- bin/Makefile | 16 ++++++++++++++++ etc/Makefile | 6 ++++++ examples/Makefile | 6 ++++++ 4 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 bin/Makefile create mode 100644 etc/Makefile create mode 100644 examples/Makefile 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 -- 2.39.2