File: rules

package info (click to toggle)
binstats 1.05-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 76 kB
  • ctags: 20
  • sloc: sh: 444; ansic: 186; makefile: 43
file content (38 lines) | stat: -rwxr-xr-x 783 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
#!/usr/bin/make -f
# -*- makefile -*- made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

clean:
	dh_testdir
	dh_testroot
	dh_clean build.stamp bstats.log derefsymlink derefsymlink.o

build: build.stamp
build.stamp:
	dh_testdir
	$(MAKE) CFLAGS='-O2 -g -Wall' LDFLAGS=
	: > $@

binary: binary-arch binary-indep

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installchangelogs
	dh_installdirs usr/bin usr/share/man/man1
	dh_installdocs README
	$(MAKE) PREFIX=debian/tmp/usr DESTMAN='$$(PREFIX)/share/man/man1' \
	        install
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep:

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