File: rules

package info (click to toggle)
vips 8.16.1-1
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 51,740 kB
  • sloc: ansic: 169,185; cpp: 11,890; python: 4,620; xml: 4,353; sh: 732; perl: 40; makefile: 19
file content (33 lines) | stat: -rwxr-xr-x 1,000 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Enable all hardening options.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

DESTDIR = $(CURDIR)/debian/tmp

override_dh_auto_test:
	LD_LIBRARY_PATH=$(CURDIR)/obj-$(DEB_BUILD_GNU_TYPE)/libvips dh_auto_test -- --timeout-multiplier=10

override_dh_auto_configure:
	dh_auto_configure -- \
		-Ddoxygen=$(if $(filter libvips-doc,$(shell dh_listpackages)),true,false) \
		-Dgtk_doc=$(if $(filter libvips-doc,$(shell dh_listpackages)),true,false)

execute_after_dh_auto_install-indep:
	mv $(DESTDIR)/usr/share/doc/vips-doc/ \
		$(DESTDIR)/usr/share/doc/libvips-doc

execute_after_dh_auto_install-arch:
	perl $(CURDIR)/debian/scripts/create_missing_manual_pages

%:
	dh $@ --buildsystem=meson --with gir

.PHONY: override_dh_auto_configure override_dh_auto_test \
	execute_after_dh_auto_install-arch execute_after_dh_auto_install-indep