File: rules

package info (click to toggle)
phaseshift 0.40-13.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 856 kB
  • ctags: 447
  • sloc: sh: 4,696; cpp: 3,542; makefile: 64; ansic: 13
file content (55 lines) | stat: -rwxr-xr-x 1,193 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

build:
	dh_testdir
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
	cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
	cp -f /usr/share/misc/config.guess config.guess
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	./configure --prefix=/usr --with-qt-includes=/usr/include/qt3 --with-qt-libraries=/usr/lib
else
	./configure --enable-debug --prefix=/usr --with-qt-includes=/usr/include/qt3 --with-qt-libraries=/usr/lib
endif
	$(MAKE) MOC=/usr/bin/moc-qt3
	touch build

clean:
	dh_testdir
	-rm -f build
	[ ! -f Makefile ] || $(MAKE) distclean
	-rm -f `find . -name "*~"`
	-rm -f config.sub config.guess
	dh_clean

binary-indep:	build
# nothing else to do

binary-arch:	build
	dh_clean
	dh_installdirs
	$(MAKE) install DESTDIR=`pwd`/debian/phaseshift

	dh_installdocs
	dh_installexamples phaseshift/phaseshift.conf
	dh_installmenu
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_md5sums
	dh_builddeb

binary:		binary-indep binary-arch

checkroot:
	dh_testdir
	dh_testroot

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