~ubuntu-branches/ubuntu/vivid/haproxy/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2008-06-20 00:38:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080620003850-hvvx94g2xz2l2xbg
Tags: 1.3.15.1-1
* New Upstream Version
* Upgrade standards version to 3.8.0 (no change needed).
* Build with TARGET=linux26 on linux, TARGET=generic on other systems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
ifeq ($(shell uname -s),Linux)
 
4
        TARGET=linux26
 
5
else
 
6
        TARGET=generic
 
7
endif
 
8
 
3
9
build:
4
10
        dh build --until dh_auto_configure
5
 
        make PREFIX=/usr TARGET=linux26 USE_PCRE=1 IGNOREGIT=true
 
11
        make PREFIX=/usr TARGET=$(TARGET) USE_PCRE=1 IGNOREGIT=true
6
12
        dh build --after dh_auto_build
7
13
 
8
14
clean:
9
15
        dh clean
10
16
 
11
17
install: build
12
 
#       mkdir -p debian/haproxy/etc/haproxy
13
 
#       cp -r examples/errorfiles debian/haproxy/etc/haproxy/errors
14
 
#       rm debian/haproxy/etc/haproxy/errors/README
15
 
#       cp debian/haproxy.cfg debian/haproxy/etc/haproxy
16
 
#       mkdir -p debian/haproxy/usr/sbin
17
 
#       cp haproxy debian/haproxy/usr/sbin
18
18
 
19
19
binary-arch: install
20
20
        dh binary-arch --before dh_auto_install
21
 
        make DESTDIR=debian/haproxy PREFIX=/usr \
 
21
        make TARGET=$(TARGET) DESTDIR=debian/haproxy PREFIX=/usr \
22
22
                MANDIR=/usr/share/man DOCDIR=/usr/share/doc/haproxy install
23
23
        cp README debian/haproxy/usr/share/doc/haproxy
24
24
        mkdir -p debian/haproxy/etc/haproxy