[go: up one dir, main page]

File: Makefile

package info (click to toggle)
krecord 1.16-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 76 kB
  • ctags: 12
  • sloc: makefile: 74; sh: 28
file content (58 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | download | duplicates (11)
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
51
52
53
54
55
56
57
58

PACKAGE	:= $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
VERSION	:= $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*:\|\)//p')
DEBARCH	:= $(shell dpkg-architecture -qDEB_HOST_ARCH)

DSC	:= $(PACKAGE)_$(VERSION).dsc
CHANGES	:= $(PACKAGE)_$(VERSION)_$(DEBARCH).changes

# config
PRESULT	:= /work/pbuilder/result


##########################################################
# normal devel builds

default: build lintian

build:
	rm -f .ok
	(time dpkg-buildpackage -nc -us -uc -rfakeroot && touch .ok) \
		2>&1 | tee build.log
	test -f .ok

lintian:
	lintian ../$(CHANGES)

clean:
	fakeroot debian/rules clean
	rm -f build.log .ok


##########################################################
# build releases

source ../$(DSC): clean
	dpkg-buildpackage -S -us -uc -rfakeroot

pbuild: ../$(DSC)
	(time sudo /usr/sbin/pbuilder build ../$(DSC) && touch .ok) \
		2>&1 | tee build.log
	test -f .ok
	-lintian -i $(PRESULT)/$(CHANGES)

release: ../$(DSC)
	#sudo /usr/sbin/pbuilder --debbuildopts '-si' build ../$(DSC)
	sudo /usr/sbin/pbuilder build ../$(DSC)
	debsign $(PRESULT)/$(CHANGES)


##########################################################
# misc

work unpack: clean
	debian/rules work

.PHONY: default build pbuild lintian clean release port
.PHONY: source work unpack