/[debian-med]/trunk/packages/wise/trunk/debian/rules
ViewVC logotype

Contents of /trunk/packages/wise/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1823 - (show annotations) (download)
Sun May 4 07:27:08 2008 UTC (5 years ago) by plessy
File size: 3247 byte(s)
This will fix #478639
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 CFLAGS = -Wall -g
8
9 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
10 CFLAGS += -O0
11 else
12 CFLAGS += -O2
13 endif
14
15 .NOTPARALLEL:
16 include /usr/share/dpatch/dpatch.make
17
18 configure: configure-stamp
19 configure-stamp:
20 dh_testdir
21
22 touch configure-stamp
23
24 build: patch build-stamp
25
26 build-stamp: configure-stamp
27 dh_testdir
28
29 $(MAKE) -C src all
30 $(MAKE) -C debian/manpages.d
31
32 # build documentation manually (docs/makefile is not useable)
33 cat src/models/*.tex src/dynlibsrc/*.tex | perl docs/gettex.pl > docs/temp.tex
34 cat docs/wise2api.tex docs/temp.tex docs/apiend.tex > docs/api.tex
35 # <bugfix>
36 sed -i 's/ sw_wrap / sw\\_wrap /' docs/api.tex
37 sed -i 's/label{module_sequence\\_codon}/label{module_sequence_codon}/' docs/api.tex
38 sed -i 's/Wise2::GeneParameter21_wrap/Wise2::GeneParameter21\\_wrap/' docs/api.tex
39 # </bugfix>
40 cd docs && pdflatex api.tex
41 cd docs && pdflatex api.tex
42 cd docs && pdflatex dynamite.tex
43 cd docs && pdflatex dynamite.tex
44 # cd docs && ps2pdf genewise6.eps # segfaults on s390
45 # cd docs && ps2pdf genewise21.eps
46 cd docs && pdflatex wise2.tex
47 cd docs && pdflatex wise2.tex
48
49 cd docs && hevea api.tex
50 cd docs && hevea api.tex
51 cd docs && hevea dynamite.tex
52 cd docs && hevea dynamite.tex
53 cd docs && hevea wise2.tex
54 cd docs && hevea wise2.tex
55
56 mkdir -p docs/api
57 mkdir -p docs/dynamite
58 mkdir -p docs/wise2
59
60 mv docs/api.html docs/api
61 mv docs/dynamite.html docs/dynamite
62 mv docs/wise2.html docs/wise2
63
64 touch $@
65
66 clean: unpatch
67 dh_testdir
68 dh_testroot
69 rm -f build-stamp configure-stamp
70
71 $(MAKE) -C src clean
72 $(MAKE) -C debian/manpages.d clean
73
74 # bugfix
75 $(RM) -r src/oldbin
76 for i in dba psw dnal genomewise pswdb scanwise estwise genewise sywise genewisedb promoterwise pseudowise estwisedb; do $(RM) src/modules/$$i; done
77 $(RM) src/network/scanwise_server
78
79 # clean documentation
80 $(RM) docs/temp.tex
81 $(RM) docs/api.*
82 $(RM) docs/wise2.image.tex
83 $(RM) docs/*.pdf
84 $(RM) docs/*.aux
85 $(RM) docs/*.log
86 $(RM) docs/*.toc
87 $(RM) docs/*.pdf
88 $(RM) docs/*.dvi
89 $(RM) docs/*.ps
90 $(RM) docs/*.4ct
91 $(RM) docs/*.4tc
92 $(RM) docs/*.css
93 $(RM) docs/*.idv
94 $(RM) docs/*.lg
95 $(RM) docs/*.tmp
96 $(RM) docs/*.xref
97 $(RM) docs/*.haux
98 $(RM) docs/*.htoc
99 $(RM) docs/*.html
100
101 $(RM) -r docs/api
102 $(RM) -r docs/dynamite
103 $(RM) -r docs/wise2
104
105 dh_clean
106
107 install: build
108 dh_testdir
109 dh_testroot
110 dh_clean -k
111 dh_installdirs
112
113 # $(MAKE) install DESTDIR=$(CURDIR)/debian/wise
114 install -m 755 src/bin/* debian/wise/usr/bin
115 install -m 755 src/models/genomewise debian/wise/usr/bin
116
117 binary-indep: build install
118 dh_testdir -i
119 dh_testroot -i
120 dh_installchangelogs -i
121 dh_installdocs -i
122 dh_installexamples -i
123 dh_installman -i
124 dh_link -i
125 dh_strip -i
126 dh_compress -i
127 dh_fixperms -i
128 dh_installdeb -i
129 dh_gencontrol -i
130 dh_md5sums -i
131 dh_builddeb -i
132
133 binary-arch: build install
134 dh_testdir -a
135 dh_testroot -a
136 dh_installchangelogs -a
137 dh_installdocs -a
138 dh_installexamples -a
139 dh_installman -a
140 dh_link -a
141 dh_strip -a
142 dh_compress -a
143 dh_fixperms -a
144 dh_installdeb -a
145 dh_shlibdeps -a
146 dh_gencontrol -a
147 dh_md5sums -a
148 dh_builddeb -a
149
150 binary: binary-indep binary-arch
151 .PHONY: build clean binary-indep binary-arch binary install configure

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5