~ubuntu-branches/ubuntu/trusty/haproxy/trusty-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2010-04-15 20:00:34 UTC
  • mfrom: (1.1.8 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100415200034-is2r38tyvmtvi3ml
Tags: 1.4.4-1
* New upstream release
* Add splice and tproxy support
* Add regparm optimization on i386
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/quilt/quilt.make
 
3
MAKEARGS=DESTDIR=debian/haproxy \
 
4
         PREFIX=/usr \
 
5
         IGNOREGIT=true \
 
6
         MANDIR=/usr/share/man \
 
7
         DOCDIR=/usr/share/doc/haproxy \
 
8
         USE_PCRE=1
4
9
 
5
 
ifeq ($(shell uname -s),Linux)
6
 
        TARGET=linux26
 
10
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH_OS),linux)
 
11
        MAKEARGS+= TARGET=linux26 \
 
12
                   USE_LINUX_SPLICE=1 \
 
13
                   USE_LINUX_TPROXY=1
7
14
else
8
 
        TARGET=generic
9
 
endif
10
 
 
11
 
MAKEARGS=USE_PCRE=1 DESTDIR=debian/haproxy PREFIX=/usr \
12
 
         TARGET=$(TARGET) IGNOREGIT=true MANDIR=/usr/share/man \
13
 
         DOCDIR=/usr/share/doc/haproxy
 
15
        MAKEARGS+= TARGET=generic
 
16
endif
 
17
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH_CPU),i386)
 
18
        MAKEARGS+= USE_REGPARM=1
 
19
endif
14
20
 
15
21
%:
16
 
        dh --with quilt $@
 
22
        dh $@
17
23
 
18
24
override_dh_auto_configure:
19
25