summaryrefslogtreecommitdiff
path: root/borg-family-0.2/Makefile
blob: 2230ee9c16e84fa4b55d170f6dd4cda5409c0b68 (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
26
27
PKGNAME=borg-family
VERSION=0.2

INSTALL=install
INSTALL_PROGRAM=$(INSTALL)
INSTALL_DATA=${INSTALL} -m 644
confdir=/etc/${PKGNAME}
sbindir=/usr/sbin

all:

deb:
	cd .. && tar -czf ${PKGNAME}_${VERSION}.orig.tar.gz --exclude debian ${PKGNAME}-${VERSION}
	debuild -us -uc

install:
	$(INSTALL) -d $(DESTDIR)$(sbindir)
	$(INSTALL) -d $(DESTDIR)$(confdir)/excludes.d
	$(INSTALL_PROGRAM) src/sbin/bfenv            $(DESTDIR)$(sbindir)
	$(INSTALL_PROGRAM) src/sbin/bfrun            $(DESTDIR)$(sbindir)
	$(INSTALL_PROGRAM) src/sbin/bfwhat           $(DESTDIR)$(sbindir)
	$(INSTALL_PROGRAM) src/etc/bfhooks           $(DESTDIR)$(confdir)
	$(INSTALL_DATA)    src/etc/confvars          $(DESTDIR)$(confdir)
	$(INSTALL_DATA)    src/etc/excludes.d/home   $(DESTDIR)$(confdir)/excludes.d
	$(INSTALL_DATA)    src/etc/excludes.d/rootfs $(DESTDIR)$(confdir)/excludes.d

.PHONY: all deb install