File: rules

package info (click to toggle)
backup-manager 0.7.14-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,560 kB
  • sloc: sh: 4,041; perl: 1,176; makefile: 213
file content (22 lines) | stat: -rwxr-xr-x 535 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

PKG = $(firstword $(shell dh_listpackages))
DOCPKG = $(lastword $(shell dh_listpackages))
PKG_DIR = $(CURDIR)/debian/$(PKG)
DOCPKG_DIR = $(CURDIR)/debian/$(DOCPKG)

%:
	dh $@

override_dh_auto_test:
	t/run-tests.sh

override_dh_auto_install:
	$(MAKE) install PREFIX=/usr DESTDIR=$(PKG_DIR) \
	    LIBDIR=/usr/share/backup-manager \
	    PERL5DIR=/usr/share/perl5
	$(MAKE) -C $(CURDIR)/doc install DESTDIR=$(DOCPKG_DIR)

override_dh_installcron:
	dh_installcron
	dh_installcron --name=backup-manager-clean-upload-db