File: rules

package info (click to toggle)
bamf 0.5.6%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,800 kB
  • sloc: ansic: 14,580; makefile: 415; xml: 249; sh: 116; python: 45
file content (38 lines) | stat: -rwxr-xr-x 1,141 bytes parent folder | download | duplicates (2)
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
# -*- Mode: Makefile; indent-tabs-mode: t -*-

export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

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

%:
	dh $@ $(DHFLAGS) --with gir --without autoreconf

override_dh_auto_configure:
	NOCONFIGURE=1 ./autogen.sh
	dh_auto_configure $(DHFLAGS) -- --enable-introspection=yes \
	                     --enable-gtk-doc \
	                     --enable-headless-tests \
	                     --disable-silent-rules

override_dh_auto_install:
	dh_auto_install
	find debian/tmp/usr/lib -name \*.la -exec rm {} \;
	find debian/tmp/usr/lib -name \*.a -exec rm {} \;

override_dh_install:
	mkdir -p debian/tmp/usr/share/doc/libbamf-doc/
	mv debian/tmp/usr/share/gtk-doc/html/libbamf debian/tmp/usr/share/doc/libbamf-doc/html
	ln -s ../../doc/libbamf-doc/html debian/tmp/usr/share/gtk-doc/html/libbamf
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_girepository:
	dh_girepository -pgir1.2-bamf-3

get-orig-source:
	uscan --noconf -vv --force-download --rename --repack --download-current-version --destdir=..