From a1b89b6fefc8563bffe0a74582633530fae4837c Mon Sep 17 00:00:00 2001 From: Borut Mrak Date: Wed, 23 Apr 2014 07:19:38 +0200 Subject: [PATCH] Makefile: * Remove PREFIX from cron scripts - they should always end up in /etc. * Leave PREFIX for man page and program, and set it to /usr/local by default. --- Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index a3f606d..155e578 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,18 @@ +PREFIX := /usr/local + all: install: - install -d $(DESTDIR)$(PREFIX)/etc/cron.d - install -d $(DESTDIR)$(PREFIX)/etc/cron.daily - install -d $(DESTDIR)$(PREFIX)/etc/cron.hourly - install -d $(DESTDIR)$(PREFIX)/etc/cron.weekly - install -d $(DESTDIR)$(PREFIX)/etc/cron.monthly - install etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)$(PREFIX)/etc/cron.d/zfs-auto-snapshot - install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)$(PREFIX)/etc/cron.hourly/zfs-auto-snapshot - install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)$(PREFIX)/etc/cron.daily/zfs-auto-snapshot - install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)$(PREFIX)/etc/cron.weekly/zfs-auto-snapshot - install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)$(PREFIX)/etc/cron.monthly/zfs-auto-snapshot + install -d $(DESTDIR)/etc/cron.d + install -d $(DESTDIR)/etc/cron.daily + install -d $(DESTDIR)/etc/cron.hourly + install -d $(DESTDIR)/etc/cron.weekly + install -d $(DESTDIR)/etc/cron.monthly + install etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)/etc/cron.d/zfs-auto-snapshot + install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)/etc/cron.hourly/zfs-auto-snapshot + install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot + install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot + install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot install -d $(DESTDIR)$(PREFIX)/share/man/man8 install src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8 install -d $(DESTDIR)$(PREFIX)/sbin