File: rules

package info (click to toggle)
libccaudio 1.2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,744 kB
  • ctags: 347
  • sloc: sh: 8,047; cpp: 2,638; makefile: 134; ansic: 8
file content (29 lines) | stat: -rwxr-xr-x 928 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
#!/usr/bin/make -f
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 := libccaudio_$(UPVERSION).orig.tar.gz
URL := http://ftp.gnu.org/pub/gnu/ccaudio/ccaudio-$(UPVERSION).tar.gz

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

build/libccaudio-dev::
	$(MAKE) doxy

clean::
	rm -f doc/latex/* doc/html/* doc/man3cc/* config.log

DEB_DH_INSTALL_ARGS := --sourcedir=debian/tmp

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

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