File: rules

package info (click to toggle)
globus-gram-job-manager-scripts 7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 400 kB
  • sloc: perl: 1,606; sh: 675; makefile: 58
file content (34 lines) | stat: -rwxr-xr-x 764 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
#!/usr/bin/make -f
# -*- makefile -*-

name = globus-gram-job-manager-scripts

INSTALLDIR = debian/tmp

_docdir = /usr/share/doc/$(name)

perl_vendorlib = $(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	   --disable-static \
	   --includedir=/usr/include/globus \
	   --libexecdir=/usr/share/globus \
	   --docdir=$(_docdir) \
	   --with-perlmoduledir=$(perl_vendorlib)

override_dh_auto_install:
	dh_auto_install

	# Remove libdir reference from noarch package
	sed '/$$libdir =/d' \
	    -i $(INSTALLDIR)/usr/share/globus/globus-job-manager-script.pl

	# Remove installed license file
	rm $(INSTALLDIR)$(_docdir)/GLOBUS_LICENSE

override_dh_missing:
	dh_missing --fail-missing