File: rules

package info (click to toggle)
oregano 0.70-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,728 kB
  • ctags: 2,545
  • sloc: ansic: 22,651; xml: 666; awk: 386; makefile: 371; sed: 93; sh: 59; perl: 20
file content (38 lines) | stat: -rwxr-xr-x 967 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v

CFLAGS = -Wall -g
LDFLAGS = -Wl,-z,defs -Wl,--as-needed

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

%:
	dh $@

override_dh_auto_configure:
	chmod +x debian/autogen.sh
	debian/autogen.sh

	ln -sf /usr/share/misc/config.sub .
	ln -sf /usr/share/misc/config.guess .
	rm -f config.cache

	dh_auto_configure -- --disable-update-mimedb

override_dh_auto_clean:
	dh_auto_clean

	find -type d -name autom4te.cache -print0 | xargs -0 rm -rf \;
	find -type f \( -name aclocal.m4 -o -name INSTALL -o -name missing \
		-o -name install-sh -o -name depcomp -o -name ltmain.sh \
		-o -name configure -o -name Makefile.in -o -name Makefile \
		\) -print0 | xargs -0 rm -f
	find \( -name config.sub -o -name config.guess \
		-o -name config.cache -o -name config.log \) -print0 \
		| xargs -0 -r rm -f \;