#!/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