File: rules

package info (click to toggle)
icom 20120228-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,376 kB
  • ctags: 959
  • sloc: ansic: 4,063; cpp: 3,322; xml: 112; makefile: 67; csh: 64; awk: 37
file content (55 lines) | stat: -rwxr-xr-x 1,006 bytes parent folder | download | duplicates (3)
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

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

package = icom

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
	make
	touch build

clean:
	dh_testdir
	-rm -f build
	make clean
	-rm -f `find . -name "*~"`
	dh_clean

binary-indep:	build
# nothing else to do

binary-arch:	build checkroot
	dh_clean
	dh_installdirs
	make install BINDIR=debian/icom/usr/bin

	dh_installdocs call.txt freq.txt arinc_freq
	cp -r 7000* 706* 756* r7000 r71 r72 8500* r8500* qsy debian/icom/usr/share/doc/icom/examples
	chmod -R a-x debian/icom/usr/share/doc/icom/examples/*
	cp -a html debian/icom/usr/share/doc/icom

	dh_installmenu
	dh_installman debian/icom.man
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_makeshlibs
	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