File: rules

package info (click to toggle)
dia 0.97.3+git20160930-8.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 54,336 kB
  • sloc: ansic: 155,065; xml: 16,326; python: 6,641; cpp: 4,935; makefile: 3,833; sh: 540; perl: 137; sed: 19
file content (51 lines) | stat: -rwxr-xr-x 1,470 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
43
44
45
46
47
48
49
50
51
#!/usr/bin/make -f

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

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

DPKG_EXPORT_BUILDFLAGS = 1

%:
	dh $@ --parallel

override_dh_auto_configure:
	libtoolize --copy --force
	autoreconf -fi
	intltoolize
	dh_auto_configure -- --with-cairo --with-hardbooks

override_dh_auto_build:
	# docbook-xsl source for referenced pngs
	ln -s /usr/share/xml/docbook/stylesheet/docbook-xsl doc/html
	dh_auto_build

override_dh_auto_install:
	dh_auto_install --no-parallel
	$(MAKE) -C doc install-html DESTDIR=$(CURDIR)/debian/dia-common
	# remove links in doc dir: en, fr, pl, eu, de
	rm debian/tmp/usr/share/doc/dia/html/en/en
	rm debian/tmp/usr/share/doc/dia/html/fr/fr
	rm debian/tmp/usr/share/doc/dia/html/eu/eu
	rm debian/tmp/usr/share/doc/dia/html/pl/pl
	rm debian/tmp/usr/share/doc/dia/html/de/de
	rm -rf debian/tmp/usr/share/doc/dia/en/examples/
	rm -rf debian/tmp/usr/share/doc/dia/eu/examples/
	rm -rf debian/tmp/usr/share/doc/dia/fr/examples/
	rm -rf debian/tmp/usr/share/doc/dia/pl/examples/

override_dh_auto_clean:
	dh_auto_clean
	-find . -name 'Makefile.in' | xargs rm -f

override_dh_compress:
	dh_compress -X.dia -X.pdf

override_dh_installcatalogs:
	dh_installcatalogs
	# Workaround as long as dh_installxmlcatalogs is not integrated in dh (#575770)
	dh_installxmlcatalogs
	# Workaround for #611418 leaving /etc/xml around
	rm -rf debian/dia-common/etc