File: rules

package info (click to toggle)
gpredict 1.1-7
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,280 kB
  • ctags: 2,873
  • sloc: ansic: 34,903; sh: 10,151; makefile: 417
file content (48 lines) | stat: -rwxr-xr-x 1,053 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
#!/usr/bin/make -f

build:
	dh_testdir
	./configure --prefix=/usr --datarootdir=/usr/share

	$(MAKE)
	touch build

clean:
	dh_testdir
	[ ! -f Makefile ] || $(MAKE) distclean
	rm -f build intltool-merge intltool-extract intltool-update config.log
	dh_clean

binary-indep:	build
# nothing else to do

binary-arch:	build
	dh_clean
	dh_installdirs
	$(MAKE) install DESTDIR=`pwd`/debian/gpredict
	cp debian/gpredict.desktop debian/gpredict/usr/share/applications
	cp pixmaps/icons/gpredict-icon.png debian/gpredict/usr/share/pixmaps/gpredict.png
	rm debian/gpredict/usr/share/gpredict/COPYING

	dh_installdocs AUTHORS README
	dh_installmenu
	dh_installman debian/gpredict.man
	dh_installchangelogs ChangeLog
	dh_link usr/share/common-licenses/GPL-2 usr/share/gpredict/COPYING
	cp NEWS debian/gpredict/usr/share/doc/gpredict
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary:		binary-indep binary-arch

checkroot:
	dh_testdir
	dh_testroot

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