File: rules

package info (click to toggle)
popt 1.4-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,044 kB
  • ctags: 175
  • sloc: sh: 7,385; ansic: 1,220; makefile: 80
file content (77 lines) | stat: -rwxr-xr-x 1,447 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/make -f
#
# Created 5 January 1998 by Enrique Zanardi <ezanardi@ull.es>
# Rewritten for debhelper 1 Jul 1999 by Joseph Carter <knghtbrd@debian.org>
#
# Copying and modification is unlimited, provided that the modified
# version is marked as being modified.

export DH_COMPAT=2

PWD=$(shell pwd)

ifeq (DEB_BUILD_GNU_CPU,"alpha")
  LIBCDEV=libc6.1-dev
else
  LIBCDEV=libc6-dev
endif

build: build-stamp
build-stamp:
	dh_testdir

	./configure --prefix=/usr --mandir=/usr/share/man --enable-shared
	$(MAKE)

	touch build-stamp


clean:
	dh_testdir

	-$(MAKE) distclean

	dh_clean
	rm -rf $(PWD)/tmp
	rm -f build-stamp install-stamp

install: install-stamp
install-stamp:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -a

	$(MAKE) DESTDIR=$(PWD)/debian/tmp install

	mkdir $(PWD)/debian/tmp/lib
	mv $(PWD)/debian/tmp/usr/lib/libpopt.so.* $(PWD)/debian/tmp/lib/
	ln -sf /lib/libpopt.so.0 $(PWD)/debian/tmp/usr/lib/libpopt.so

	touch install-stamp


binary: binary-indep binary-arch

binary-indep:
# Nothing to see here

binary-arch: build install
	dh_testversion 2
	dh_testdir
	dh_testroot
	dh_installdocs -a
	dh_installchangelogs -a CHANGES
	dh_movefiles -a
	dh_strip -a
	dh_link -a
	dh_compress -a
	dh_fixperms -a
	dh_makeshlibs -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a --dpkg-gencontrol-params="-Vlibcdev=$(LIBCDEV)"
	dh_md5sums -a
	dh_builddeb -a

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