File: rules

package info (click to toggle)
radeontool 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,952 kB
  • ctags: 6,974
  • sloc: ansic: 14,515; sh: 10,250; makefile: 49
file content (51 lines) | stat: -rwxr-xr-x 1,513 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
49
50
51
#!/usr/bin/make -f
# This file is in the public domain.
# You may freely use, modify, distribute, and relicense it.

clean build install binary-indep binary-arch binary:
	dh $@
.PHONY: clean build install binary-indep binary-arch binary

override_dh_auto_clean:
	sh debian/autogen.sh
	test -e debian/changelog.upstream || { \
		echo >&2 see debian/README.source; \
		exit 1; \
	}
	rm -f radeontool.8; # from docbook-to-man
	rm -f radeontool avivotool; # from cc
	rm -f *.o; # from cc
	rm -f *.tab.c; # from yacc
	rm -fr *.lo .libs _libs; # from libtool
	rm -f Makefile libtool; # from config.status
	rm -f config.status config.cache config.log; # from configure
	rm -f configure.lineno config.status.lineno config.lt; # from configure
	rm -fr configure autom4te.cache; # from autoconf
	rm -fr .deps; # from depcomp
	rm -f Makefile.in config.guess config.sub; # from automake
	rm -f depcomp install-sh ltmain.sh missing; # from automake
	rm -f aclocal.m4; # from aclocal
	rm -f CHANGES autogen.sh fix.sh lightwatch.pl; # not distributed

override_dh_auto_configure:
	autoreconf -is
	dh_auto_configure -- $(conf_opt)

override_dh_auto_build:
	dh_auto_build
	docbook-to-man debian/radeontool.sgml > radeontool.8

override_dh_installman:
	dh_installman radeontool.8

override_dh_installchangelogs:
	dh_installchangelogs debian/changelog.upstream

conf_opt = --bindir='$${exec_prefix}/sbin' CFLAGS='$(CFLAGS)'

CFLAGS = -g -Wall
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif