File: Makefile

package info (click to toggle)
quicktime4linux 1.3-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 924 kB
  • ctags: 16
  • sloc: makefile: 131; sh: 14
file content (47 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (4)
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

WORKDIR=$(shell basename `pwd`)
PACKAGE=$(shell echo $(WORKDIR) | sed 's/-.*//')
VERSION=$(shell echo $(WORKDIR) | sed 's/.*-//')


##########################################################
# 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 ../$(PACKAGE)_$(VERSION)*.changes

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


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

release:
	dpkg-buildpackage -si -tc -rfakeroot

port:
	dpkg-buildpackage -B -tc -rfakeroot


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

source src: clean
	(cd ..; dpkg-source -b $(PACKAGE))

work unpack: clean
	debian/rules work

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