File: rules

package info (click to toggle)
rawrec 0.9.98-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 312 kB
  • ctags: 130
  • sloc: ansic: 1,988; makefile: 98; sh: 1
file content (59 lines) | stat: -rwxr-xr-x 1,339 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/make -f

# Use debhelper 3.x semantics.
export DH_COMPAT=3

# Uncomment this to turn on verbose debhelper operation.
#export DH_VERBOSE=1

clean:
	dh_testdir
	dh_clean
	rm -f build-stamp
	-$(MAKE) -i -C src clean

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  build: OPT_FLAGS = -O0
endif
build: DEBUG_FLAGS = -g
build:  
	$(MAKE) -C src 'DEBUGFLAGS = $(DEBUG_FLAGS)' 'OPTFLAGS = $(OPT_FLAGS)'
	touch build-stamp


install:
	dh_clean
	$(MAKE) -C src 'EXE_DIR = ../debian/rawrec/usr/bin' \
	               'MAN_DIR = ../debian/rawrec/usr/share/man/man1' \
		       install

binary-indep: install

binary-arch: install
	dh_testdir -a
	dh_testroot -a
	dh_installdocs -a
	dh_installchangelogs -a ChangeLog
	dh_strip -a
	dh_compress -a
	dh_installdirs -a
# Override lintian complaints about setuid binary.
	cp debian/rawrec.lintian_overrides \
           debian/rawrec/usr/share/lintian/overrides/rawrec
# The executable itself should be suid root.  
	dh_fixperms -a --exclude=rawrec
# suidregister is no longer used, the new way is dpkg-statoverride, which 
# requires no explicit action on the part of this installation.
#	dh_suidregister -a usr/bin/rawrec
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-arch binary-indep

.PHONY: binary binary-arch binary-indep clean