]> arthur.barton.de Git - backup-script.git/blob - Makefile
Use ax-make
[backup-script.git] / Makefile
1 #
2 # backup-script system for cloning systems using rsync
3 # Copyright (c)2008-2014 Alexander Barton, alex@barton.de
4 #
5
6 include ./Makefile.ax
7
8 install-local:
9         install -d -o $(USER) -g $(GROUP) -m 755 \
10          $(DESTDIR)$(PREFIX)/sbin
11         install -o $(USER) -g $(GROUP) -m 755 bin/backup-script \
12          $(DESTDIR)$(PREFIX)/sbin/backup-script
13         install -o $(USER) -g $(GROUP) -m 755 bin/backup-script-wrapper \
14          $(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper
15         install -o $(USER) -g $(GROUP) -m 755 bin/backup-status \
16          $(DESTDIR)$(PREFIX)/sbin/backup-status
17         install -d -o $(USER) -g $(GROUP) -m 755 \
18          $(DESTDIR)$(PREFIX)/etc/backup-script.d
19         install -d -o $(USER) -g $(GROUP) -m 755 $(DESTDIR)/etc
20         test -e $(DESTDIR)/etc/backup-script.d \
21          || ln -s $(DESTDIR)$(PREFIX)/etc/backup-script.d \
22               $(DESTDIR)/etc/backup-script.d