blob: 0ab8d6ec6c6551d2d36f02eaedb96e4585faeb2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# vim: shiftwidth=4 softtabstop=4 tabstop=4 noexpandtab
DESTDIR="" # leave empty for the current system or provide a fakeroot here
PREFIX="/usr"
.PHONY: clean install tarball
clean:
find . -type d -iname '__pycache__' -exec rm -rf {} +;
make -C src clean
install:
install -Dm 644 config/default.json $(DESTDIR)/etc/xbackup/config.json
mkdir -p $(DESTDIR)/var/lib/xbackup/borg
chown -R root:root $(DESTDIR)/var/lib/xbackup
chmod -R 700 $(DESTDIR)/var/lib/xbackup
make -C src install DESTDIR=$(abspath $(DESTDIR))
tarball: clean
tar --exclude-vcs -cvf xbackup.tar *
|