File: rules

package info (click to toggle)
otp 970425-6
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 136 kB
  • ctags: 117
  • sloc: ansic: 686; makefile: 53; sh: 8
file content (44 lines) | stat: -rwxr-xr-x 671 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
#!/usr/bin/make -f

export DH_COMPAT := 3

CFLAGS := -O2 -Wall
ifneq ($(findstring debug,$(DEB_BUILD_OPTIONS)),)
CFLAGS += -g
endif

clean:
	dh_testdir
	dh_testroot
	dh_clean build.stamp
	$(MAKE) clean

build: build.stamp
build.stamp:
	dh_testdir
	$(MAKE) CFLAGS="$(CFLAGS)"
	> $@

binary: binary-arch binary-indep

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs usr/bin
	install otp debian/otp/usr/bin
	dh_installdocs README
	dh_installman otp.1
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: build

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