File: rules

package info (click to toggle)
distcc 3.1-6.2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,564 kB
  • ctags: 3,009
  • sloc: ansic: 19,204; python: 6,177; sh: 4,023; makefile: 862; perl: 52
file content (47 lines) | stat: -rwxr-xr-x 1,634 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
46
47
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow

DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --with autotools_dev,python2 --parallel \
	  --sourcedirectory=source

override_dh_auto_configure:
	dh_auto_configure -- \
	  --enable-rfc2553 --disable-Werror --with-gnome \
	  PYTHON=$(shell which `pyversions -d`)

	sed s/%DEB_HOST_MULTIARCH%/$(DEB_HOST_MULTIARCH)/ \
	  debian/distcc.triggers.in >debian/distcc.triggers
	sed s/%DEB_HOST_MULTIARCH%/$(DEB_HOST_MULTIARCH)/ \
	  debian/update-distcc-symlinks.in >debian/update-distcc-symlinks
	chmod +x debian/update-distcc-symlinks

override_dh_auto_test:
	# The test suite is disabled because it fails due to changes in
        # compiler output.  This is fixed upstream in 3.2rc1.
        # See: http://code.google.com/p/distcc/issues/detail?id=81

override_dh_auto_install:
	dh_auto_install

	# 09_rename-pump.patch: finish off by renaming installed pump files
	mv debian/tmp/usr/bin/pump \
	   debian/tmp/usr/bin/distcc-pump
	mv debian/tmp/usr/share/man/man1/pump.1 \
	   debian/tmp/usr/share/man/man1/distcc-pump.1

override_dh_auto_clean:
	rm -f debian/distcc.triggers debian/update-distcc-symlinks
	dh_auto_clean