File: rules

package info (click to toggle)
xsane 0.999-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 22,596 kB
  • sloc: ansic: 46,243; makefile: 717; sh: 377; sed: 50
file content (38 lines) | stat: -rwxr-xr-x 813 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-gimp

override_dh_auto_clean:
	dh_auto_clean

	rm -f config.sub config.guess
	rm -f xsane.spec include/config.h
	rm -f po/*.gmo

override_dh_auto_install:
	dh_auto_install

	# remove outdated/useless documentation
	rm -f debian/tmp/usr/share/sane/xsane/doc/sane-backends-doc.html
	rm -f debian/tmp/usr/share/sane/xsane/doc/sane-pnm-doc.html

override_dh_install-arch:
	dh_install

	install -m 0644 src/xsane-32x32.xpm \
		debian/xsane/usr/share/pixmaps/xsane.xpm
	install -m 0644 src/xsane-48x48.png \
		debian/xsane/usr/share/pixmaps/xsane.png

override_dh_install-indep:
	dh_install

override_dh_installchangelogs:
	dh_installchangelogs xsane.CHANGES