File: rules

package info (click to toggle)
tslib 1.0-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 580 kB
  • ctags: 303
  • sloc: ansic: 8,731; xml: 256; makefile: 179; sh: 50
file content (52 lines) | stat: -rwxr-xr-x 1,214 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

include /usr/share/dpatch/dpatch.make

DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
CROSS+= --cache-file=$(DEB_HOST_GNU_TYPE).cache
else
CROSS= --build $(DEB_BUILD_GNU_TYPE)
endif

build: build-stamp
build-stamp: patch-stamp
	dh_testdir
	./autogen.sh
	./configure --prefix=/usr --sysconfdir=/etc $(CROSS)
	$(MAKE)
	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	./autogen-clean.sh
	dh_clean depcomp tslib-0.0.pc aclocal.m4 INSTALL
	rm -f build-stamp

binary-indep: build

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	$(MAKE) DESTDIR=$(shell pwd)/debian/tmp install
	dh_installdirs
	dh_install --sourcedir=debian/tmp --list-missing
	dh_installdocs AUTHORS README
	dh_installchangelogs ChangeLog
	dh_installman -plibts-bin debian/*.1
	dh_compress
	dh_fixperms
	dh_strip --dbg-package=libts-0.0-0-dbg
	dh_makeshlibs
	dh_shlibdeps
	dh_gencontrol
	dh_installdeb
	dh_md5sums
	dh_builddeb

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