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
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
include /usr/share/cli-common/cli.make
include /usr/share/dpatch/dpatch.make
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
CURVER=$(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | cut -d"-" -f1 )
build: build-stamp
build-stamp: patch-stamp
MCS=/usr/bin/csc dh build
touch $@
clean: unpatch
dh $@
install: build
dh $@
binary: binary-arch
binary-arch: install
dh $@
# Makefile arcanery warning:
# $(dir $(_)) gives us the path containing this rules file.
# I haven't found this documented in any make documentation, so I am unsure
# how portable/version independent it is.
# This magic care of Emmet Hickory:
# (http://lists.debian.org/debian-devel-games/2008/02/msg00135.html)
get-orig-source:
[ -d ../tarballs ] || mkdir ../tarballs
uscan \
--destdir=../tarballs \
--rename \
--download-version $(CURVER) \
--force-download \
--watchfile=$(dir $(_))/watch
.PHONY: build clean install binary binary-arch get-orig-source
|