File: rules

package info (click to toggle)
rear 2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,332 kB
  • sloc: sh: 19,302; makefile: 286; xml: 282
file content (27 lines) | stat: -rwxr-xr-x 590 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f
export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	# We want to rebuild man and it's not cleaned by make clean
	rm -f doc/rear.8

override_dh_auto_build-arch:
	dh_auto_build -Nrear-doc
	$(MAKE) man

override_dh_auto_build-indep:
	$(MAKE) doc

override_dh_install:
	gunzip debian/tmp/usr/share/rear/skel/Debian/default.tar.gz
	gzip -n debian/tmp/usr/share/rear/skel/Debian/default.tar
	rm -fr debian/tmp/usr/share/rear/conf/examples
	dh_install

override_dh_fixperms:
	# Stick to install-config permissions
	dh_fixperms --exclude debian/rear/etc/rear