File: rules

package info (click to toggle)
muine 0.8.11-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,444 kB
  • ctags: 2,250
  • sloc: sh: 10,253; cs: 10,022; ansic: 1,994; xml: 1,408; makefile: 430
file content (52 lines) | stat: -rwxr-xr-x 1,371 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
50
51
52
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/cli-common/cli.make
include /usr/share/quilt/quilt.make

CURVER = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | cut -d"-" -f1 )

MAKEFILE = $(firstword $(MAKEFILE_LIST))
DEBIAN_DIR = $(dir $(MAKEFILE))
SOURCE_DIR = $(DEBIAN_DIR)/..

DEB_VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Version | cut -d" " -f2)   
DEB_SOURCE_NAME = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | grep ^Source | cut -d" " -f2)
VERSION = $(shell echo $(DEB_VERSION) | cut -d"-" -f1 | sed 's/+dfsg.*//')

override_dh_makeclilibs:
	dh_makeclilibs -V 'muine (>= $(VERSION)), muine (<< $(VERSION).)'

# buggy make test
override_dh_auto_test:

override_dh_auto_configure:
	dh_auto_configure -- MCS=/usr/bin/mono-csc --enable-gstreamer=0.10

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -f ./libtool src/AmazonSearchService.cs
	rm -rf $(MONO_SHARED_DIR)/.wapi
	rm -f  debian/muine.substvars.new
	find . -name \*.mdb -print | xargs rm -f

	dh_clean

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh build
	touch $@

%:
	dh --with quilt $@

get-orig-source:
	uscan \
		--package $(DEB_SOURCE_NAME) \
		--watchfile $(DEBIAN_DIR)/watch \
		--upstream-version $(VERSION) \
		--download-version $(VERSION) \
		--destdir . \
		--force-download \
		--rename \
		--repack