File: rules

package info (click to toggle)
bing 1.0.5-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 120 kB
  • ctags: 134
  • sloc: ansic: 1,246; makefile: 47
file content (36 lines) | stat: -rwxr-xr-x 685 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
#!/usr/bin/make -f 
# Derived partly from dh_make's example.

build: build-stamp
build-stamp:
	dh_testdir
	$(MAKE) CC="gcc" CFLAGS="-g -O2 -Wall" CLIBS="-s" bing
	touch $@

clean:
	$(MAKE) clean
	dh_clean build-stamp

binary-indep:
# Nothing to do here, no arch-independant packages here.

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs usr/sbin
	install -m 0755 bing debian/tmp/usr/sbin/bing
	dh_installdocs README
	dh_installmanpages
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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