File: rules

package info (click to toggle)
tangerine 0.3.4-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,552 kB
  • sloc: sh: 11,023; cs: 5,910; ansic: 366; makefile: 357
file content (49 lines) | stat: -rwxr-xr-x 1,209 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
48
49
#!/usr/bin/make -f
# -*- makefile -*-

DEBIAN_DIR = $(dir $(firstword $(MAKEFILE_LIST)))
CURVER ?= $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | \
			sed -n 's/-.*$$//; s/^Version: //p')
USCAN = uscan \
			--package=tangerine \
			--watchfile=$(DEBIAN_DIR)/watch \
			--upstream-version=$(CURVER)

get-orig-source:
	$(USCAN) \
		--force-download \
		--download \
		--destdir=. \
		--rename

override_dh_auto_configure:
	autoreconf -f -i -I m4/shamrock
	dh_auto_configure -- \
		MCS=/usr/bin/mono-csc \
		--enable-debug \
		--disable-banshee \
		--disable-beagle \
		--enable-file

override_dh_strip:
	dh_strip --dbg-package=tangerine-dbg

override_dh_clistrip:
	dh_clistrip --dbg-package=tangerine-dbg

# disable dh_makeshlibs (problems with /usr/lib/tangerine/*.so*)
override_dh_makeshlibs:

ifneq ($(shell dpkg-architecture -ilinux-any && echo linux),linux)
override_dh_clideps:
	dh_clideps --exclude-moduleref=tangglue
endif

# delete sample.conf (handled by dh_installexamples)
override_dh_auto_install:
	dh_auto_install -- DESTDIR="$(CURDIR)/debian/tangerine"
	rm debian/tangerine/usr/share/doc/tangerine/sample.conf
	find debian/tangerine -name '*.la' -delete

%:
	dh $@ --with autoreconf,cli