File: rules

package info (click to toggle)
asterisk-prompt-fr-proformatique 20070706-1.4-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,012 kB
  • sloc: sh: 65; makefile: 44
file content (63 lines) | stat: -rwxr-xr-x 1,511 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/make -f
# -*- makefile -*-

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

NO_DISTRIB:=README LICENCE
NO_DISTRIB_FIND_EXPR:=$(patsubst %,-not -name '%',$(NO_DISTRIB))
PKG_NAME:=asterisk-prompt-fr-proformatique
LNG:=fr

DEBSOURCE:=$(shell head -n 1 debian/changelog|sed -e 's/^\(\S\+\)\s.*/\1/')
DEBVERSION:=$(shell head -n 1 debian/changelog \
                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')

FILENAME := $(DEBSOURCE)_$(UPVERSION).orig.tar.gz
UPFILENAME := prompt-fr-france-$(UPVERSION).tgz
URL := http://xivo.fr/debian/$(UPFILENAME)

build: build-indep

build-indep:

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	dh_clean

binary-indep: build-indep install
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	dh_install
	dh_installchangelogs
	dh_installdocs
	dh_link
	dh_compress
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

#Only "arch: all", so nothing to do, but that target is mandatory.
binary-arch:

binary: binary-indep binary-arch

print-version:
	@@echo "Source name:             $(DEBSOURCE)"
	@@echo "Debian version:          $(DEBVERSION)"
	@@echo "Upstream version:        $(UPVERSION)"

get-orig-source:
	@@dh_testdir
	@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
	@@echo Downloading $(FILENAME) from $(URL) ...
	@@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)

.PHONY: clean binary-indep binary-arch binary install build build-indep