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

Annotation of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1608 - (hide annotations) (download)
Thu Aug 30 01:31:05 2007 UTC (16 years, 10 months ago) by jpye
File size: 1858 byte(s)
Debian uses a didfferent format for the MIME files.
Bumped version.
1 jpye 1396 #!/usr/bin/make -f
2     # -*- makefile -*-
3    
4     CFLAGS = -Wall -g
5 jpye 1523
6     SCONS_OPTIONS = CC="ccache gcc" \
7     CXX="ccache g++" \
8     INSTALL_PREFIX=/usr \
9     WITH_DOC_BUILD=0 \
10     WITH_DOC_INSTALL=1
11 jpye 1396 SCONS= scons $(SCONS_OPTIONS)
12    
13     ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14     CFLAGS += -O0
15     else
16     CFLAGS += -O2
17     endif
18    
19     ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20     INSTALL_PROGRAM += -s
21     endif
22    
23     # shared library versions, option 1
24     major=0
25    
26 jpye 1544 INSTALLROOT=$(CURDIR)/debian/ascend/
27 jpye 1421 DATADIR=$(INSTALLROOT)/usr/share
28    
29 jpye 1396 build: build-stamp
30     build-stamp:
31     dh_testdir
32 jpye 1413 cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
33 jpye 1396 touch build-stamp
34    
35     clean:
36     dh_testdir
37     rm -f build-stamp
38     dh_clean
39 jpye 1544 $(SCONS) -c
40 jpye 1545 rm -rf .scon*
41     rm scons/*.pyc
42 jpye 1396
43     install: build
44     dh_testdir
45 jpye 1413 # dh_testroot
46 jpye 1396 dh_clean -k
47     dh_installdirs
48 jpye 1421 mkdir -p $(INSTALLROOT)/usr
49     cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
50     #
51 jpye 1425 cd $(CURDIR)/pygtk/gnome && \
52 jpye 1545 install -m 644 -D ascend.desktop $(DATADIR)/applications/ascend.desktop && \
53     install -m 644 -D ascend.png $(DATADIR)/icons/ascend-app.png && \
54     install -m 644 -D ascend.png $(DATADIR)/icons/hicolor/64x64/ascend.png && \
55 jpye 1421 #
56 jpye 1413 dh_install --autodest
57 jpye 1421 dh_desktop
58     dh_installmime
59 jpye 1418 dh_installman debian/ascend.man
60     dh_installman debian/ascend4.man
61     dh_installman debian/ascend-config.man
62 jpye 1396
63     # Build architecture-independent files here.
64     binary-indep:
65     dh_testdir
66     dh_testroot
67     -cd $(CUR_DIR) && $(SCONS) doc
68    
69     # Build architecture-dependent files here.
70     binary-arch: build install
71     dh_testdir
72     dh_testroot
73     dh_installchangelogs CHANGELOG.txt
74     dh_installdocs
75     dh_installexamples
76     dh_installman
77     dh_link
78     dh_strip
79     dh_compress
80     dh_fixperms
81     dh_makeshlibs
82     dh_installdeb
83 jpye 1413 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
84 jpye 1396 dh_gencontrol
85     dh_md5sums
86     dh_builddeb
87    
88     binary: binary-indep binary-arch
89     .PHONY: build clean binary-indep binary-arch binary install configure
90    

Properties

Name Value
svn:executable *

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