File: rules

package info (click to toggle)
corkscrew 2.0-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 360 kB
  • ctags: 52
  • sloc: sh: 2,295; ansic: 504; makefile: 87
file content (50 lines) | stat: -rwxr-xr-x 783 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
#!/usr/bin/make -f

# export DH_VERBOSE=1

PACKAGE = corkscrew

include debian/pod2man.mk
include debian/debian-autotools.mk

man:
	# target: man - convert *.pod to manual page
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) \
	PODCENTER=Networking MANSECT=1 makeman

override_dh_auto_configure:
	$(config-prepare)
	dh_auto_configure

install: man build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) prefix=debian/$(PACKAGE)/usr install

binary-arch: build install
	$(config-restore)
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installman
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch

%:
	dh $@

.PHONY: install man
.PHONY: binary-arch binary man

# End of file