File: rules

package info (click to toggle)
debsums 2.0.36
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 320 kB
  • ctags: 4
  • sloc: perl: 525; sh: 81; makefile: 35
file content (46 lines) | stat: -rwxr-xr-x 1,015 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
#!/usr/bin/make -f

# rules for debsums

version=$(shell dpkg-parsechangelog | sed -n 's/^Version: *//p')
package=debsums
tmp=debian/$(package)

build: # nothing
clean:
	dh_testdir
	dh_testroot
	dh_clean
	debconf-updatepo
	cd man && po4a --no-translations --rm-backups po4a.cfg
	rm -f man/po/*~ man/*/debsums*.[18]

binary-arch: # nothing
binary-indep:
	dh_testdir
	dh_testroot
	dh_clean -k

	mkdir -p $(tmp)/usr/bin $(tmp)/usr/sbin
	sed 's/#VERSION#/$(version)/' debsums.in >$(tmp)/usr/bin/debsums
	cp debsums_gen debsums_init $(tmp)/usr/sbin
	cp rdebsums $(tmp)/usr/bin
	chmod 755 $(tmp)/usr/bin/debsums $(tmp)/usr/sbin/debsums_gen \
	    $(tmp)/usr/sbin/debsums_init $(tmp)/usr/bin/rdebsums

	dh_installdocs README
	cd man && po4a --rm-backups po4a.cfg
	dh_installman `find man -type f -name '*.[18]'`

	dh_installchangelogs
	dh_installdebconf
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary:	binary-indep binary-arch

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