File: rules

package info (click to toggle)
lintian 2.4.3%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,228 kB
  • ctags: 457
  • sloc: perl: 8,492; sh: 5,561; makefile: 1,971; ansic: 143; python: 19; tcl: 4; sed: 2
file content (29 lines) | stat: -rwxr-xr-x 648 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
#!/usr/bin/make -f

tmp=debian/tmp

build:

binary-arch:

binary-indep:
	install -d $(tmp)/usr/share/doc/fields
	install -m 644 debian/changelog \
	  $(tmp)/usr/share/doc/fields/changelog
	gzip -9 $(tmp)/usr/share/doc/fields/changelog
	dh_md5sums -pfields -P$(tmp)
	dpkg-gencontrol -pfields -P$(tmp)
	dpkg --build $(tmp) ..
	rm -rf $(tmp)

	# Create another package with a different version
	dh_md5sums -panother-version -P$(tmp)
	dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp)
	dpkg --build $(tmp) ..

binary: binary-arch binary-indep

clean:
	rm -rf debian/files $(tmp) debian/substvars

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