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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1523 - (show annotations) (download)
Sat Jun 30 14:55:05 2007 UTC (17 years, 2 months ago) by jpye
File size: 1912 byte(s)
Little bit on trying to fix debian build.
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 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/tmp/
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
40 install: build
41 dh_testdir
42 # dh_testroot
43 dh_clean -k
44 dh_installdirs
45 mkdir -p $(INSTALLROOT)/usr
46 cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(INSTALLROOT) install
47 #
48 cd $(CURDIR)/pygtk/gnome && \
49 install -m 644 -D ascend.desktop $(INSTALLROOT)$(DATADIR)/applications/ascend.desktop && \
50 install -m 644 -D ascend.png $(INSTALLROOT)$(DATADIR)/icons/ascend-app.png && \
51 install -m 644 -D ascend.png $(INSTALLROOT)$(DATADIR)/icons/hicolor/64x64/ascend.png && \
52 install -m 644 -D ascend.xml $(CURDIR)/debian/ascend.mime
53 #
54 dh_install --autodest
55 dh_desktop
56 dh_installmime
57 dh_installman debian/ascend.man
58 dh_installman debian/ascend4.man
59 dh_installman debian/ascend-config.man
60
61 # Build architecture-independent files here.
62 binary-indep:
63 dh_testdir
64 dh_testroot
65 -cd $(CUR_DIR) && $(SCONS) doc
66
67 # Build architecture-dependent files here.
68 binary-arch: build install
69 dh_testdir
70 dh_testroot
71 dh_installchangelogs CHANGELOG.txt
72 dh_installdocs
73 dh_installexamples
74 dh_installman
75 dh_link
76 dh_strip
77 dh_compress
78 dh_fixperms
79 dh_makeshlibs
80 dh_installdeb
81 dh_shlibdeps -L ascend -l debian/ascend/usr/lib
82 dh_gencontrol
83 dh_md5sums
84 dh_builddeb
85
86 binary: binary-indep binary-arch
87 .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