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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1611 - (show annotations) (download)
Thu Aug 30 06:49:19 2007 UTC (14 years, 11 months ago) by jpye
File size: 2232 byte(s)
Added debian dependency on gtksourceview for installation of gedit highlighting.
Added icon for use in nautilus in debian.
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 CFLAGS = -Wall -g
5
6 SCONS_OPTIONS = CC="gcc" \
7 CXX="g++" \
8 INSTALL_PREFIX=/usr \
9 WITH_DOC_BUILD=0 \
10 WITH_DOC_INSTALL=1
11 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 INSTALLROOT=$(CURDIR)/debian/ascend/
27 DATADIR=$(INSTALLROOT)/usr/share
28
29 build: build-stamp
30 build-stamp:
31 dh_testdir
32 cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
33 touch build-stamp
34
35 clean:
36 dh_testdir
37 rm -f build-stamp
38 dh_clean
39 $(SCONS) -c
40 rm -rf .scon*
41 rm scons/*.pyc
42
43 install: build
44 dh_testdir
45 # dh_testroot
46 dh_clean -k
47 dh_installdirs
48 mkdir -p $(INSTALLROOT)/usr
49 cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
50 #
51 cd $(CURDIR)/pygtk/gnome && \
52 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 install -m 644 -D ascend.xml $(DATADIR)/mime/packages/ascend.xml
56 #
57 # file-type icon for ascend models (double click should open in ASCEND)
58 cd $(CURDIR)/pygtk/glade && \
59 install -m 644 -D ascend-doc-48x48.svg $(DATADIR)/icons/text-x-ascend-model.svg
60 #
61 # syntax highlighting for gedit
62 cd $(CURDIR)/tools/gedit && \
63 install -m 644 -D ascend.lang $(DATADIR)/gtksourceview-1.0/language-specs/ascend.lang
64 #
65 dh_install --autodest
66 dh_desktop
67 dh_installman debian/ascend.man
68 dh_installman debian/ascend4.man
69 dh_installman debian/ascend-config.man
70
71 # Build architecture-independent files here.
72 binary-indep:
73 dh_testdir
74 dh_testroot
75 -cd $(CUR_DIR) && $(SCONS) doc
76
77 # Build architecture-dependent files here.
78 binary-arch: build install
79 dh_testdir
80 dh_testroot
81 dh_installchangelogs CHANGELOG.txt
82 dh_installdocs
83 dh_installexamples
84 dh_installman
85 dh_link
86 dh_strip
87 dh_compress
88 dh_fixperms
89 dh_makeshlibs
90 dh_installdeb
91 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
92 dh_gencontrol
93 dh_md5sums
94 dh_builddeb
95
96 binary: binary-indep binary-arch
97 .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