2014-04-23 07:19:38 +02:00
|
|
|
PREFIX := /usr/local
|
|
|
|
|
2011-11-22 02:08:15 +01:00
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
2014-04-23 07:19:38 +02:00
|
|
|
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
|
2014-10-14 06:12:53 +02:00
|
|
|
install -m 0644 etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)/etc/cron.d/zfs-auto-snapshot
|
2014-04-23 07:19:38 +02:00
|
|
|
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
|
2013-06-17 00:37:33 +02:00
|
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man8
|
2017-12-27 22:34:39 +01:00
|
|
|
install -m 0644 src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
|
2011-11-22 02:08:15 +01:00
|
|
|
install -d $(DESTDIR)$(PREFIX)/sbin
|
|
|
|
install src/zfs-auto-snapshot.sh $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot
|
2018-10-13 19:50:50 +02:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm $(DESTDIR)/etc/cron.d/zfs-auto-snapshot
|
|
|
|
rm $(DESTDIR)/etc/cron.hourly/zfs-auto-snapshot
|
|
|
|
rm $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot
|
|
|
|
rm $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot
|
|
|
|
rm $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot
|
|
|
|
rm $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
|
|
|
|
rm $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot
|