]> arthur.barton.de Git - backup-script.git/blob - Makefile
Add Makefile
[backup-script.git] / Makefile
1 #
2 # backup-script system for cloning systems using rsync
3 # Copyright (c)2008-2013 Alexander Barton, alex@barton.de
4 #
5
6 PREFIX = /usr/local
7
8 all:
9
10 clean:
11
12 distclean: clean
13
14 maintainer-clean: distclean
15
16 check:
17
18 install:
19         install -d -o root -g root -m 755 \
20          $(DESTDIR)$(PREFIX)/sbin
21         install -o root -g root -m 755 bin/backup-script \
22          $(DESTDIR)$(PREFIX)/sbin/backup-script
23         install -o root -g root -m 755 bin/backup-script-wrapper \
24          $(DESTDIR)$(PREFIX)/sbin/backup-script-wrapper
25         install -o root -g root -m 755 bin/backup-status \
26          $(DESTDIR)$(PREFIX)/sbin/backup-status
27         install -d -o root -g root -m 755 \
28          $(DESTDIR)$(PREFIX)/etc/backup-script.d
29         install -d -o root -g root -m 755 $(DESTDIR)/etc
30         test -e $(DESTDIR)/etc/backup-script.d \
31          || ln -s $(DESTDIR)$(PREFIX)/etc/backup-script.d \
32               $(DESTDIR)/etc/backup-script.d
33
34 .PHONY = all clean distclean maintainer-clean check install