summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 80ec028d6cabbeb2c3a3f78d040c635725ef46a8 (plain)
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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

# CFLAGS goes before foo_LDFLAGS, but LDFLAGS - after
# see d/p/link-pthread.diff
export CFLAGS += -Wl,--as-needed

ifeq ($(DEB_HOST_ARCH),armel)
	CFLAGS += -O0
endif

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
			--disable-silent-rules \
			--enable-compile-warnings=yes \
			--with-naturaldocs-output=HTML \
			--with-pdfdocs

override_dh_autoreconf:
	LIBTOOLIZE=debian/preserving-libtoolize dh_autoreconf

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

override_dh_strip:
	dh_strip --dbg-package augeas-dbg

override_dh_compress:
	dh_compress -X.pdf