File: rules

package info (click to toggle)
gbonds 2.0.3-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,900 kB
  • sloc: ansic: 11,021; sh: 9,201; xml: 1,216; makefile: 250
file content (50 lines) | stat: -rwxr-xr-x 1,065 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
#!/usr/bin/make -f
%:
	dh  $@

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

override_dh_auto_clean:

	if [ -f Makefile ] ; then $(MAKE) maintainer-clean ; fi

	# Things upstream's distclean missed.
	-rm -f intltool-extract
	-rm -f intltool-merge
	-rm -f intltool-update

	# Autotools generated files.
	-rm -f aclocal.m4
	-rm -f config.guess
	-rm -f config.h.in
	-rm -f config.log
	-rm -f config.sub
	-rm -f configure
	-rm -f depcomp
	-rm -f intltool-extract.in
	-rm -f intltool-merge.in
	-rm -f intltool-update.in
	-rm -f ltmain.sh
	-rm -f po/Makefile.in.in

	find -name Makefile.in -delete
	find -name .cvsignore  -delete

override_dh_auto_configure:

	libtoolize
	intltoolize
	aclocal
	autoheader
	automake -a
	autoconf

	rm -f config.cache

	UPDATE_DESKTOP_DATABASE=/bin/true \
	UPDATE_MIME_DATABASE=/bin/true \
	./configure \
	    --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
	    --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \
	    $(shell dpkg-buildflags --export=configure)