File: rules

package info (click to toggle)
libgudev 230-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,916 kB
  • ctags: 569
  • sloc: sh: 11,253; ansic: 1,277; makefile: 185; xml: 47
file content (30 lines) | stat: -rwxr-xr-x 616 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
#! /usr/bin/make -f

#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS="nostrip"

VERSION = $(shell dpkg-parsechangelog | sed -n -e '/^Version:/s/.*: //p')

%:
	dh $@ --with autoreconf,gir

autoreconf:
	gtkdocize --copy --docdir docs/
	autoreconf -f -i

override_dh_autoreconf:
	dh_autoreconf debian/rules -- autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --enable-gtk-doc

override_dh_makeshlibs:
	dh_makeshlibs --remaining-packages -- -c4

override_dh_gencontrol:
	# Ubuntu has an epoch on gudev
	if dpkg-vendor --is ubuntu; then \
		dh_gencontrol -- "-v1:$(VERSION)"; \
	else \
		dh_gencontrol; \
	fi