File: rules

package info (click to toggle)
bsd-finger 0.17-15.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 444 kB
  • sloc: ansic: 1,327; makefile: 97; sh: 43
file content (77 lines) | stat: -rwxr-xr-x 1,713 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
# GNU copyright 1997 to 1999 by Joey Hess.
# Copyright (c) 1999 Herbert Xu <herbert@debian.org>
# Copyright (C) 2004-2008 Anibal Monsalve Salazar <anibal@debian.org>

export DH_VERBOSE=1

export DH_OPTIONS

#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
	if [ ! -f MCONFIG ]; then \
		./configure; \
		sed -e "s/^CFLAGS=\(.*\)$$/CFLAGS=-g -D_GNU_SOURCE \1/;s/^LDFLAGS=\(.*\)$$/LDFLAGS=$$LDFLAGS \1/" \
		    MCONFIG > MCONFIG.new; \
		mv MCONFIG.new MCONFIG; \
	fi
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp
	touch MCONFIG
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean

install: DH_OPTIONS=
install: build install-stamp
install-stamp:
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	install finger/finger debian/finger/usr/bin
	install fingerd/fingerd debian/fingerd/usr/sbin/in.fingerd
	cp finger/finger.1 debian/finger/usr/share/man/man1
	cp fingerd/fingerd.8 debian/fingerd/usr/share/man/man8/in.fingerd.8
	dh_strip
	touch install-stamp

binary-common:
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installcron
	dh_installinfo
	dh_installchangelogs ChangeLog
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: install

binary-arch: install
	$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common

binary-%: install
	make -f debian/rules binary-common DH_OPTIONS=-p$*

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