~ubuntu-branches/ubuntu/utopic/rnahybrid/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Andreas Tille, Charles Plessy, Andreas Tille
  • Date: 2012-03-31 22:52:18 UTC
  • Revision ID: package-import@ubuntu.com-20120331225218-xkfpo4xmpf51jayr
Tags: 2.1-3
[ Charles Plessy ]
* Documented information in debian/upstream
* Removed mention of the bibliographic reference in debian/control

[ Andreas Tille ]
* debian/source/format: 3.0 (quilt)
* debian/control: Standards-Version: 3.9.3 (no changes needed)
* debhelper 9 (control+compat)
* debian/rules: short dh
* debian/copyright: DEP5, verified using
    cme fix dpkg-copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- makefile -*-
3
3
 
4
 
# These are used for cross-compiling and for saving the configure script
5
 
# from having to guess our platform (since we know it already)
6
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
 
 
9
 
CFLAGS = -Wall -g
10
 
 
11
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12
 
        CFLAGS += -O0
13
 
else
14
 
        CFLAGS += -O2
15
 
endif
16
 
 
17
 
config.status: configure
18
 
        dh_testdir
19
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
20
 
        cp -f /usr/share/misc/config.sub config.sub
21
 
endif
22
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
23
 
        cp -f /usr/share/misc/config.guess config.guess
24
 
endif
25
 
        ./configure     --host=$(DEB_HOST_GNU_TYPE)\
26
 
                        --build=$(DEB_BUILD_GNU_TYPE)\
27
 
                        --prefix=/usr\
28
 
                        --mandir=\$${prefix}/share/man\
29
 
                        CFLAGS="$(CFLAGS)"\
30
 
                        LDFLAGS="-Wl,-z,defs"
31
 
 
32
 
build: build-stamp
33
 
 
34
 
build-stamp:  config.status
35
 
        dh_testdir
36
 
        $(MAKE)
37
 
        touch $@
38
 
 
39
 
clean: config.status
40
 
        dh_testdir
41
 
        dh_testroot
42
 
        rm -f build-stamp 
43
 
        $(MAKE) distclean
44
 
        dh_clean config.sub config.guess 
45
 
 
46
 
test: build
 
4
%:
 
5
        dh $@ --with autotools_dev
 
6
 
 
7
override_dh_auto_configure:
 
8
        dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) \
 
9
                            --build=$(DEB_BUILD_GNU_TYPE) \
 
10
                            --prefix=/usr \
 
11
                            --mandir=\$${prefix}/share/man \
 
12
                            CFLAGS="$(CFLAGS)" \
 
13
                            LDFLAGS="-Wl,-z,defs"
 
14
 
 
15
override_dh_auto_test:
47
16
        src/RNAhybrid -s 3utr_worm -t examples/cel-hbl-1.fasta -q examples/cel-let-7.fasta
48
17
        src/RNAcalibrate -d examples/3UTR_worm.freq -k 50 -l 50,30 -q examples/cel-let-7.fasta
49
18
        src/RNAhybrid -d 1.9,0.28 -t examples/cel-hbl-1.fasta -q examples/cel-let-7.fasta
51
20
        src/RNAcalibrate -f 2,7 -d examples/3UTR_worm.freq -k 50 -l 50,30 -q examples/cel-let-7.fasta
52
21
        src/RNAhybrid -s 3utr_worm -t examples/cbr-hbl-1.fasta -q examples/cel-let-7.fasta
53
22
        -src/RNAeffective -k 30 -s -t examples/hbl-1.fasta -q examples/cel-let-7.fasta
54
 
 
55
 
install: build test
56
 
        dh_testdir
57
 
        dh_testroot
58
 
        dh_clean -k 
59
 
        dh_installdirs
60
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/rnahybrid install
61
 
 
62
 
binary-indep: build install
63
 
 
64
 
binary-arch: build install
65
 
        dh_testdir
66
 
        dh_testroot
67
 
        dh_installchangelogs ChangeLog
68
 
        dh_installdocs README
69
 
        dh_installexamples examples/*
70
 
        dh_link
71
 
        dh_strip
72
 
        dh_compress
73
 
        dh_fixperms
74
 
        dh_installdeb
75
 
        dh_shlibdeps
76
 
        dh_gencontrol
77
 
        dh_md5sums
78
 
        dh_builddeb
79
 
 
80
 
binary: binary-indep binary-arch
81
 
.PHONY: build clean binary-indep binary-arch binary install