File: rules

package info (click to toggle)
equivs 2.0.9
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 144 kB
  • ctags: 10
  • sloc: perl: 281; makefile: 58; sh: 14
file content (50 lines) | stat: -rwxr-xr-x 1,020 bytes parent folder | download | duplicates (2)
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
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for packages that are architecture independent.

#export DH_VERBOSE=1
PKG := equivs
MANPAGES := debian/equivs-control.1 debian/equivs-build.1

%.1: %.pod
	pod2man --section=1 --release="$$(date +'%d %b %Y')" \
	--center="Debian/GNU" --date=' ' $< > $@

build-arch:
build-indep: $(MANPAGES)
build: build-arch build-indep

clean:
	dh_testdir
	$(RM) $(MANPAGES)
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep

	mkdir -p debian/$(PKG)
	cp -la usr debian/$(PKG)

# Build architecture-dependent packages - nothing to do here
binary-arch: build install

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installman
	dh_installchangelogs
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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