File: rules

package info (click to toggle)
amd 1%3A0.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 40 kB
  • ctags: 3
  • sloc: makefile: 35; sh: 29
file content (46 lines) | stat: -rwxr-xr-x 701 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
#! /usr/bin/make -f

package=amd

build:
	$(checkdir)
	touch build

clean:
	$(checkdir)
	rm -f build
	rm -rf debian/tmp debian/files* debian/substvars debian/*~
	dh_clean

binary-indep:	checkroot build
	$(checkdir)
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_gencontrol
	dh_installdeb
	dh_md5sums
	dh_fixperms
	dh_builddeb

binary-arch:	checkroot build
	$(checkdir)

define checkdir
	test -f debian/rules
endef

binary:		binary-arch binary-indep

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

checkroot:
	$(checkdir)
	test root = "`whoami`"

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