File: rules

package info (click to toggle)
yaz 3.0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,404 kB
  • ctags: 12,108
  • sloc: xml: 116,075; ansic: 52,205; sh: 9,746; tcl: 2,043; makefile: 1,141; yacc: 347
file content (66 lines) | stat: -rwxr-xr-x 1,714 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PATH:=${HOME}/ccache:${PATH}

export CFLAGS+= -Wall

configure build install: %: stamp-%

stamp-configure:
	dh build --before configure
	autoreconf -vif
	dh_auto_configure -- \
		--enable-shared --enable-static \
		--enable-tcpd --with-xslt \
		--with-gnutls --without-openssl \
		--with-icu --with-xml2 --with-pcap
	touch $@

stamp-build: stamp-configure
	dh build --after configure
	touch $@

clean:
	dh clean --until dh_auto_clean
	# remove stamp files
	$(RM) stamp-*
	# remove generated files
	$(RM) doc/*.html doc/*.7 doc/*.1 \
		doc/htmlhelp.hhp doc/toc.hhc doc/manref.xml
	# remove autoconf generated files
	find . -name Makefile.in -exec $(RM) {} \;
	$(RM) aclocal.m4 configure config/*
	dh clean --remaining
	# if this is a git repository, restore removed files that would have
	# been ignored by dpkg-source
	-test -d .git && git-checkout -- $$(git-status | \
		sed -e '/^#[[:space:]]*deleted:[[:space:]]*/s/^#[[:space:]]*deleted:[[:space:]]*//p;d' | \
		grep -v '^debian/')


stamp-install: stamp-build
	dh install --until dh_auto_install
	mv debian/tmp/usr/share/doc/yaz debian/tmp/usr/share/doc/yaz-doc
	dh install --before dh_installdocs
	dh_installdocs -A README
	dh install --remaining
	touch $@

binary-arch: stamp-install
	dh binary-arch --before dh_makeshlibs
	dh_makeshlibs -a -V 'libyaz3 (>= 3.0.30)'
	dh binary-arch --after dh_makeshlibs --before dh_shlibdeps
	dh_shlibdeps -a -- --warnings=7
	dh binary-arch --after dh_shlibdeps

binary-indep: stamp-install
	dh binary-indep

binary: binary-indep binary-arch

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