File: rules

package info (click to toggle)
libgwenhywfar 4.12.0beta-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,004 kB
  • ctags: 7,553
  • sloc: ansic: 98,857; sh: 11,641; cpp: 8,598; objc: 2,525; makefile: 1,710; xml: 876
file content (45 lines) | stat: -rwxr-xr-x 1,213 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
#!/usr/bin/make -f

ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
	DEB_BUILD_DOCS=0
else
	DEB_BUILD_DOCS=1
endif

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-guis="fox16 qt4 gtk2" \
		--disable-network-checks \
		$(shell dpkg-buildflags --export=configure)

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C debian/man

	# This is not an arch-indep target, as some built binaries are required to build the srcdoc
	if [ "$(DEB_BUILD_DOCS)" = "1" ]; then \
		$(MAKE) srcdoc; \
	else \
		mkdir apidoc; \
	fi

override_dh_auto_install:
	dh_auto_install
	# Remove upstream's poorly maintained CA bundle and replace it by the
	# CA bundle managed by the package ca-certificates (fixes Debian bug #748955)
	rm -v debian/tmp/usr/share/gwenhywfar/ca-bundle.crt
	ln -vs /etc/ssl/certs/ca-certificates.crt \
	      debian/tmp/usr/share/gwenhywfar/ca-bundle.crt

override_dh_strip:
	dh_strip --dbg-package=libgwenhywfar60-dbg

override_dh_auto_clean:
	rm -rvf apidoc listdoc.h gwenhywfar.tag gwenhywfar4
	$(MAKE) -C debian/man clean
	dh_auto_clean

%:
	dh $@ --with autoreconf

.PHONY:	override_dh_auto_configure override_dh_auto_build override_dh_auto_install override_dh_strip override_dh_auto_clean