summaryrefslogtreecommitdiff
path: root/debian/rules
blob: a5b6d0e6d760be346fa287292a387346d178acb4 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

#
# 2014-07-22 Jörg Frings-Fürst <debian@jff-webhosting.net>
#
# - enable hardening
# - install NEWS as upstream changelog
#
# 2015-01-19 Jörg Frings-Fürst <debian@jff-webhosting.net>
#
# - remove old style hardening.
# - remove useless comments.
#
# 2015-04-29 Jörg Frings-Fürst <debian@jff-webhosting.net>
#
# - remove override_dh_auto_test
#
# 2016-10-02 Jörg Frings-Fürst <debian@jff-webhosting.net>
#
# - remove gcc-6 comments
# - remove override_dh_auto_build
#
# 2017-07-16 Jörg Frings-Fürst <debian@jff-webhosting.net>
#
# - switch to meson
# - remove override_dh_strip
#
# 2018-07-16 Jörg Frings-Fürst <debian@jff.email>
#
# - use gnome and override_dh_translation.
#


#
# Hardening
#
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@  --buildsystem=meson --with gnome,scour

override_dh_installdocs:
	dh_installdocs --link-doc=simple-scan

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_gnome_clean:
	dh_gnome_clean --no-control

# Work around Ubuntu translations issue
override_dh_translations:
	ninja -C obj-$(DEB_HOST_GNU_TYPE) simple-scan-pot
	dh_translations