/[ascend]/trunk/debian/rules
ViewVC logotype

Annotation of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1417 - (hide annotations) (download)
Wed Apr 25 04:08:42 2007 UTC (18 years, 7 months ago) by jpye
File size: 2303 byte(s)
More work following Debian package feedback from 'lintian'
1 jpye 1396 #!/usr/bin/make -f
2     # -*- makefile -*-
3     # Sample debian/rules that uses debhelper.
4     # This file was originally written by Joey Hess and Craig Small.
5     # As a special exception, when this file is copied by dh-make into a
6     # dh-make output file, you may use that output file without restriction.
7     # This special exception was added by Craig Small in version 0.37 of dh-make.
8     #
9     # File sourced from http://iua-share.upf.edu/svn/clam/trunk/CLAM/debian/rules
10     # by John Pye on 21 Apr 2007
11    
12     # Uncomment this to turn on verbose mode.
13     #export DH_VERBOSE=1
14    
15     CFLAGS = -Wall -g
16 jpye 1413 SCONS_OPTIONS = CC="ccache gcc" CXX="ccache g++" INSTALL_PREFIX=/usr -j2
17 jpye 1396 SCONS= scons $(SCONS_OPTIONS)
18    
19     ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20     CFLAGS += -O0
21     else
22     CFLAGS += -O2
23     endif
24    
25     ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26     INSTALL_PROGRAM += -s
27     endif
28    
29     # shared library versions, option 1
30 jpye 1417 version=0.95.109
31 jpye 1396 major=0
32    
33     build: build-stamp
34     build-stamp:
35     dh_testdir
36 jpye 1413 cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
37     cd $(CURDIR) && $(SCONS) doc/book.pdf
38 jpye 1417 dh_strip --dbg=ascend-dbg
39 jpye 1396 touch build-stamp
40    
41     clean:
42     dh_testdir
43     rm -f build-stamp
44     -cd $(CURDIR) && $(SCONS) -c
45 jpye 1413 find $(CURDIR) -name ".scon*" | xargs rm -rf
46     find $(CURDIR) -type f -name "*.pyc" | xargs rm -rf
47     find $(CURDIR) -type f -name "*.pyo" | xargs rm -rf
48     find $(CURDIR) -type f -name "*.o" | xargs rm -rf
49     find $(CURDIR) -type f -name "*.os" | xargs rm -rf
50     find $(CURDIR) -type f -name "*.a" | xargs rm -rf
51     -rm $(CURDIR)/doc/*.tex
52     -rm -rf $(CURDIR)/doc/html
53     # dh_testroot
54 jpye 1396 dh_clean
55    
56     install: build
57     dh_testdir
58 jpye 1413 # dh_testroot
59 jpye 1396 dh_clean -k
60     dh_installdirs
61     mkdir -p $(CURDIR)/debian/tmp/usr
62 jpye 1413 cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(CURDIR)/debian/tmp install
63     dh_install --autodest
64 jpye 1396
65     # Build architecture-independent files here.
66     binary-indep:
67     dh_testdir
68     dh_testroot
69     -cd $(CUR_DIR) && $(SCONS) doc
70    
71     # Build architecture-dependent files here.
72     binary-arch: build install
73     dh_testdir
74     dh_testroot
75     dh_installchangelogs CHANGELOG.txt
76     dh_installdocs
77     dh_installexamples
78     dh_installman
79     dh_link
80     dh_strip
81     dh_compress
82     dh_fixperms
83     dh_makeshlibs
84     dh_installdeb
85 jpye 1413 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
86 jpye 1396 dh_gencontrol
87     dh_md5sums
88     dh_builddeb
89    
90     binary: binary-indep binary-arch
91     .PHONY: build clean binary-indep binary-arch binary install configure
92    

Properties

Name Value
svn:executable *

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22