Skip to content

Commit a1b89b6

Browse files
author
Borut Mrak
committed
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.
1 parent d625c53 commit a1b89b6

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Makefile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
PREFIX := /usr/local
2+
13
all:
24

35
install:
4-
install -d $(DESTDIR)$(PREFIX)/etc/cron.d
5-
install -d $(DESTDIR)$(PREFIX)/etc/cron.daily
6-
install -d $(DESTDIR)$(PREFIX)/etc/cron.hourly
7-
install -d $(DESTDIR)$(PREFIX)/etc/cron.weekly
8-
install -d $(DESTDIR)$(PREFIX)/etc/cron.monthly
9-
install etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)$(PREFIX)/etc/cron.d/zfs-auto-snapshot
10-
install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)$(PREFIX)/etc/cron.hourly/zfs-auto-snapshot
11-
install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)$(PREFIX)/etc/cron.daily/zfs-auto-snapshot
12-
install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)$(PREFIX)/etc/cron.weekly/zfs-auto-snapshot
13-
install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)$(PREFIX)/etc/cron.monthly/zfs-auto-snapshot
6+
install -d $(DESTDIR)/etc/cron.d
7+
install -d $(DESTDIR)/etc/cron.daily
8+
install -d $(DESTDIR)/etc/cron.hourly
9+
install -d $(DESTDIR)/etc/cron.weekly
10+
install -d $(DESTDIR)/etc/cron.monthly
11+
install etc/zfs-auto-snapshot.cron.frequent $(DESTDIR)/etc/cron.d/zfs-auto-snapshot
12+
install etc/zfs-auto-snapshot.cron.hourly $(DESTDIR)/etc/cron.hourly/zfs-auto-snapshot
13+
install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot
14+
install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot
15+
install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot
1416
install -d $(DESTDIR)$(PREFIX)/share/man/man8
1517
install src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
1618
install -d $(DESTDIR)$(PREFIX)/sbin

0 commit comments

Comments
 (0)