aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: d241287c2a84a632a146a6e8ba287d8a526bef0d (plain)
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
60
61
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

#export DH_VERBOSE=1
export DH_COMPAT=2
ROOT=$(shell echo `pwd`/debian/tmp)

build:
	test -f config.h || ./configure --prefix=/usr --mandir=/usr/share/man
	$(MAKE) $@

clean::
	-$(MAKE) distclean
	dh_clean

install: build
	$(MAKE) ROOT=$(ROOT) $@
	dh_movefiles

	# fix v4l-conf suid-root lintian warning
	mkdir -p debian/v4l-conf/usr/share/lintian/overrides
	echo "v4l-conf: setuid-binary" \
		> debian/v4l-conf/usr/share/lintian/overrides/v4l-conf


binary-indep: install
	# nop

binary-arch: install
	dh_installdocs README* Changes UPDATE_TO_v3.0		\
		Programming-FAQ Trouble-Shooting Sound-FAQ	\
		contrib/dot.lircrc contrib/frequencies*
	dh_installdocs -p xawtv-tools tools/README
	dh_installdocs -p webcam webcam/webcam.cgi
#	dh_installexamples
	dh_installmenu
#	dh_installemacsen
#	dh_installpam
#	dh_installinit
#	dh_installcron
#	dh_installmanpages
#	dh_installinfo
	dh_installdebconf -p xawtv
	dh_undocumented -p xawtv-tools	record.1 dump-mixers.1
	dh_undocumented -p streamer	streamer.1
	dh_installchangelogs
#	dh_link
#	dh_strip
	dh_compress
	dh_fixperms	-Xv4l-conf
#	dh_makeshlibs
	dh_installdeb
#	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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

Privacy Policy