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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1815 - (show annotations) (download)
Sat Aug 16 07:28:04 2008 UTC (14 years, 3 months ago) by jpye
File size: 2619 byte(s)
Add 'debian' folder into tarball once again.
Add new 'dtar' tool (will describe it on wiki).
Update debian/changelog.
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 CFLAGS = -Wall -g
5
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 F2C_LIBPATH=/usr/lib/gcc/i486-linux-gnu/4.2.1/ \
12 F2C_LIB=gfortran \
13 FORTRAN=gfortran \
14 WITH_SOLVERS=CMSLV,CONOPT,DOPRI5,IDA,LRSLV,LSODE,QRSLV
15
16 SCONS= scons $(SCONS_OPTIONS)
17
18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 CFLAGS += -O0
20 else
21 CFLAGS += -O2
22 endif
23
24 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
25 INSTALL_PROGRAM += -s
26 endif
27
28 # shared library versions, option 1
29 major=0
30
31 INSTALLROOT=$(CURDIR)/debian/ascend/
32 DATADIR=$(INSTALLROOT)/usr/share
33
34 GTKSOURCEVIEW=gtksourceview-2.0
35 GTKSOURCEVIEWLANGS=$(DATADIR)/$(GTKSOURCEVIEW)/language-specs
36
37 build: build-stamp
38 build-stamp:
39 dh_testdir
40 cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
41 touch build-stamp
42
43 clean:
44 dh_testdir
45 rm -f build-stamp
46 dh_clean
47 $(SCONS) -c
48 rm -rf .scon*
49 rm scons/*.pyc
50
51 install: build
52 dh_testdir
53 # dh_testroot
54 dh_clean -k
55 dh_installdirs
56 mkdir -p $(INSTALLROOT)/usr
57 cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
58 #
59 cd $(CURDIR)/pygtk/gnome && \
60 install -m 644 -D ascend.desktop $(DATADIR)/applications/ascend.desktop && \
61 install -m 644 -D ascend.png $(DATADIR)/icons/ascend-app.png && \
62 install -m 644 -D ascend.png $(DATADIR)/icons/hicolor/64x64/ascend.png && \
63 install -m 644 -D ascend.xml $(DATADIR)/mime/packages/ascend.xml
64 #
65 # file-type icon for ascend models (double click should open in ASCEND)
66 cd $(CURDIR)/pygtk/glade && \
67 install -m 644 -D ascend-doc-48x48.svg $(DATADIR)/icons/text-x-ascend-model.svg
68 #
69 # syntax highlighting for gedit
70 cd $(CURDIR)/tools/$(GTKSOURCEVIEW) && \
71 install -m 644 -D ascend.lang $(GTKSOURCEVIEWLANGS)/ascend.lang
72 #
73 # DESKTOP file for ASCEND Tcl/Tk
74 cd $(CURDIR)/tcltk/gnome && \
75 install -m 644 -D ascend4.desktop $(DATADIR)/applications/ascend4.desktop
76 #
77 dh_install --autodest
78 dh_desktop
79 dh_installman debian/ascend.man
80 dh_installman debian/ascend4.man
81 dh_installman debian/ascend-config.man
82
83 # Build architecture-independent files here.
84 binary-indep:
85 dh_testdir
86 dh_testroot
87 -cd $(CUR_DIR) && $(SCONS) doc
88
89 # Build architecture-dependent files here.
90 binary-arch: build install
91 dh_testdir
92 dh_testroot
93 dh_installchangelogs CHANGELOG.txt
94 dh_installdocs
95 dh_installexamples
96 dh_installman
97 dh_link
98 dh_strip
99 dh_compress
100 dh_fixperms
101 dh_makeshlibs
102 dh_installdeb
103 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
104 dh_gencontrol
105 dh_md5sums
106 dh_builddeb
107
108 binary: binary-indep binary-arch
109 .PHONY: build clean binary-indep binary-arch binary install configure

Properties

Name Value
svn:executable *

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