File: rules

package info (click to toggle)
givaro 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,112 kB
  • sloc: cpp: 29,827; makefile: 1,065; sh: 366; csh: 196
file content (37 lines) | stat: -rwxr-xr-x 960 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ENABLE_DOC := $(if $(shell dh_listpackages -i),--enable-doc)

override_dh_auto_configure:
	dh_auto_configure -- $(ENABLE_DOC) --without-archnative

# the default value of USE_TARGETS is "docs", but this builds the
# documentation a second time
override_dh_auto_install:
	dh_auto_install -- USE_TARGETS=

override_dh_installexamples:
	dh_installexamples -XMakefile -XMakefile.am -XMakefile.in

# remove build path from givaro-makefile
execute_after_dh_install-arch:
	sed -i 's/-ffile-prefix-map=[^ ]*//' \
		debian/libgivaro-dev/usr/share/givaro/givaro-makefile

override_dh_auto_test:
	dh_auto_test --max-parallel=1

HTML_DIR = debian/libgivaro-doc/usr/share/doc/libgivaro-dev/givaro-html

execute_after_dh_installdocs-indep:
	dh_doxygen
	rm -f $(HTML_DIR)/COPYING $(HTML_DIR)/INSTALL

# fix "duplicate-files" Lintian warning
execute_before_dh_link-indep:
	jdupes -rl $(HTML_DIR)

%:
	dh $@