File: rules

package info (click to toggle)
cattle-1.0 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,320 kB
  • sloc: sh: 4,174; ansic: 3,789; xml: 325; makefile: 301
file content (61 lines) | stat: -rwxr-xr-x 1,834 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/make -f

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

DESTDIR = $(CURDIR)/debian/tmp
BUILDDIR = $(CURDIR)/debian/build

%:
	dh $@ --with gir \
		  --builddir $(BUILDDIR)

# Refresh the build system.
#
# The build system is completely regenerated to ensure the tools used to
# build the binary package are the ones shipped with Debian.
#
# We need to intialize gtk-doc explicitly because autoreconf doesn't do
# that for us.
override_dh_autoreconf:
	gtkdocize
	dh_autoreconf

# Clean up the build system.
#
# Most files are handled for us automatically, but once again we have
# to take care of gtk-doc ourselves.
override_dh_autoreconf_clean:
	rm -f gtk-doc.*
	dh_autoreconf_clean

# Call configure.
#
# debhelper will take care of all the important stuff such as build
# architecture and installation paths, but we still need to explicitly
# pass a couple of parameters ourselves.
override_dh_auto_configure:
	dh_auto_configure -- \
	                  --enable-introspection=yes \
	                  --enable-gtk-doc=yes

# Prepare files.
#
# The upstream build system mostly does the right thing, but we still
# want to move some files around to make things easier for debhelper
# tools that are called later.
override_dh_auto_install:
	dh_auto_install --destdir $(DESTDIR)
	mv $(DESTDIR)/usr/share/doc/cattle-1.0/NEWS.rst \
	   $(DESTDIR)/usr/share/doc/cattle-1.0/NEWS

# Install documentation.
#
# debhelper's automatic detection results in the release notes for
# the -doc package ending up in a directory named after the -dev
# package, which is clearly not what we want, so we have to be a bit
# more hands-on here.
override_dh_installdocs:
	dh_installdocs -plibcattle-1.0-doc --doc-main-package libcattle-1.0-doc
	dh_installdocs -Nlibcattle-1.0-doc