File: rules

package info (click to toggle)
qof 0.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,436 kB
  • ctags: 3,587
  • sloc: ansic: 33,810; sh: 9,356; xml: 487; makefile: 405; yacc: 184; lex: 123; sed: 16
file content (39 lines) | stat: -rwxr-xr-x 1,516 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
#!/usr/bin/make -f
# Copyright 2003 Goedson Teixeira Paixao <goedson@debian.org>
# Copyright 2006 Neil Williams <linux@codehelp.co.uk>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
# internal libraries need to be redirected to cross version
DEB_MAKE_INVOKE+="QOF_LIBS=-L/usr/$(DEB_HOST_GNU_TYPE)/lib -lqof"
# prevent CDBS overwriting CC
DEB_CONFIGURE_SCRIPT_ENV =
# Emdebian-specific customisation
DEB_CONFIGURE_EXTRA_FLAGS += --disable-gdasql --disable-doxygen
# enable dpkg-shlibdeps to find the internal libraries.
DEB_SHLIBDEPS_INCLUDE_libqof1 = ./debian/tmp/usr/lib/
else
DEB_MAKE_CHECK_TARGET = check
endif

configure/libqof1::
	cp qof.symbols debian/libqof1.symbols