File: rules

package info (click to toggle)
gtkhash 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,132 kB
  • sloc: ansic: 6,711; sh: 4,249; xml: 2,413; makefile: 392
file content (44 lines) | stat: -rwxr-xr-x 1,138 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
39
40
41
42
43
44
#!/usr/bin/make -f
export DH_VERBOSE=1

PKG_DIR = debian/gtkhash
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export HOME = $(CURDIR)/debian/build

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-gtk=3.0 --enable-nettle --enable-gcrypt --enable-nautilus --enable-thunar --enable-nemo --enable-caja

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_makeshlibs:
	dh_makeshlibs -Xlibgtkhash-properties

override_dh_install:
	dh_install --list-missing

override_dh_auto_install:
	dh_auto_install
	# Make sure there will be no *.la file
	find debian -name "*.la" -delete

override_dh_autoreconf:
	mv m4/glib-gettext.m4 m4/glib-gettext.m4.old
	# Replace glib-gettext.m4 with a newest file
	cp /usr/share/aclocal/glib-gettext.m4 m4/
	dh_autoreconf --as-needed

override_dh_auto_test:
	mkdir -p $(HOME)
	dh_auto_test

# Replace the upstream M4 files.
override_dh_clean:
	dh_clean
	# Restore upstream glib-gettext.m4
	[ ! -f m4/glib-gettext.m4.old ] || mv m4/glib-gettext.m4.old m4/glib-gettext.m4
	rm -rf $(HOME)