File: rules

package info (click to toggle)
srm-ifce 1.24.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 988 kB
  • sloc: ansic: 8,250; python: 159; makefile: 92; sh: 71
file content (20 lines) | stat: -rwxr-xr-x 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" < /dev/null

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/tmp/usr/share/doc
	# Replace with a script for multi-arch
	printf '#!/bin/sh\necho ' > \
	   debian/tmp/usr/bin/gfal_srm_ifce_version.sh
	LD_LIBRARY_PATH=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH):$${LD_LIBRARY_PATH} \
	   debian/tmp/usr/bin/gfal_srm_ifce_version >> \
	   debian/tmp/usr/bin/gfal_srm_ifce_version.sh
	mv debian/tmp/usr/bin/gfal_srm_ifce_version.sh \
	   debian/tmp/usr/bin/gfal_srm_ifce_version