File: rules

package info (click to toggle)
cdebconf-entropy 0.20
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 608 kB
  • ctags: 109
  • sloc: sh: 2,770; ansic: 883; makefile: 60
file content (24 lines) | stat: -rwxr-xr-x 512 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /usr/bin/make -f
%:
	dh $@

CFLAGS = -Wall -g

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

override_dh_auto_configure:
	CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,syms" dh_auto_configure

override_dh_auto_clean:
	[ -e configure ] || ./autogen.sh
	dh_auto_clean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
	cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
	cp -f /usr/share/misc/config.guess config.guess
endif