File: rules

package info (click to toggle)
gfal2 2.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,396 kB
  • sloc: ansic: 15,626; cpp: 14,751; python: 257; sh: 236; makefile: 121
file content (38 lines) | stat: -rwxr-xr-x 1,157 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
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	   -DSYSCONF_INSTALL_DIR:PATH=/etc \
	   -DLIB_SUFFIX:PATH="/$(DEB_HOST_MULTIARCH)" \
	   -DUNIT_TESTS:BOOL=TRUE \
	   -DPLUGIN_MOCK:BOOL=TRUE \
	   -DPLUGIN_LFC:BOOL=FALSE \
	   -DPLUGIN_RFIO:BOOL=FALSE

override_dh_auto_build:
	dh_auto_build -- all doc

override_dh_auto_install:
	dh_auto_install
	# Remove
	rm debian/tmp/usr/share/doc/gfal2/LICENSE
	rm debian/tmp/usr/share/doc/gfal2/readme.html
	rm debian/tmp/usr/bin/gfal2-unit-tests
	rm debian/tmp/usr/lib/*/libgfal2_test_shared.so
	# Replace with a script for multi-arch
	printf '#!/bin/sh\necho ' > debian/tmp/usr/bin/gfal2_version.sh
	LD_LIBRARY_PATH=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH):$${LD_LIBRARY_PATH} \
	   debian/tmp/usr/bin/gfal2_version >> \
	   debian/tmp/usr/bin/gfal2_version.sh
	mv debian/tmp/usr/bin/gfal2_version.sh \
	   debian/tmp/usr/bin/gfal2_version

override_dh_auto_test:
	objdir=obj-$(DEB_HOST_GNU_TYPE) ; \
	export GFAL_PLUGIN_DIR=$(CURDIR)/$${objdir}/plugins ; \
	export GFAL_CONFIG_DIR=$(CURDIR)/$${objdir}/test/conf_test ; \
	dh_auto_test -- "ARGS+=-V"