File: rules

package info (click to toggle)
libgweather 3.28.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 46,536 kB
  • sloc: xml: 42,502; ansic: 7,163; python: 794; perl: 490; sh: 50; makefile: 28
file content (42 lines) | stat: -rwxr-xr-x 1,082 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed

CHECK_HOME = $(CURDIR)/debian/tmp/home

%:
	dh $@ --with gir,gnome

override_dh_auto_configure:
	dh_auto_configure -- \
                             -Denable_vala=true \
                             -Dgtk_doc=true \
                             -Dglade-catalog=true

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	mkdir -p $(CHECK_HOME)
	# Ignore test failures since tests require Internet access
	env XDG_RUNTIME_DIR=$(CHECK_HOME) dh_auto_test || true
endif

override_dh_clean:
	rm -rf $(CHECK_HOME)
	dh_clean

# Ubuntu's dh_translations can't handle two .pot files yet
# https://launchpad.net/bugs/1751820
override_dh_translations:
	dh_translations --domain=libgweather-3.0
	ninja -C obj-$(DEB_HOST_GNU_TYPE) libgweather-locations-pot

override_dh_auto_clean:
	dh_auto_clean
	rm -f po-locations/libgweather-locations.pot