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

Diff of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1396 by jpye, Sun Apr 22 03:22:45 2007 UTC revision 1413 by jpye, Tue Apr 24 13:34:35 2007 UTC
# Line 13  Line 13 
13  #export DH_VERBOSE=1  #export DH_VERBOSE=1
14    
15  CFLAGS = -Wall -g  CFLAGS = -Wall -g
16  SCONS_OPTIONS= prefix=/usr  SCONS_OPTIONS = CC="ccache gcc" CXX="ccache g++" INSTALL_PREFIX=/usr -j2
17  SCONS= scons $(SCONS_OPTIONS)  SCONS= scons $(SCONS_OPTIONS)
18    
19  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
# Line 30  endif Line 30  endif
30  version=0.95.108  version=0.95.108
31  major=0  major=0
32    
 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so  
 #version=`ls src/.libs/lib*.so.* | \  
 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`  
 #major=`ls src/.libs/lib*.so.* | \  
 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`  
   
33  build: build-stamp  build: build-stamp
34  build-stamp:  build-stamp:
35      dh_testdir      dh_testdir
36      cd $(CURDIR); $(SCONS)      cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
37        cd $(CURDIR) && $(SCONS) doc/book.pdf
38      touch build-stamp      touch build-stamp
39    
40  clean:  clean:
41      dh_testdir      dh_testdir
     dh_testroot  
42      rm -f build-stamp      rm -f build-stamp
43      -cd $(CURDIR) && $(SCONS) -c      -cd $(CURDIR) && $(SCONS) -c
44      find $(CURDIR) -name .scon* | xargs rm -rf      find $(CURDIR) -name ".scon*" | xargs rm -rf
45      find $(CURDIR) -type f -name *.pyc | xargs rm -rf      find $(CURDIR) -type f -name "*.pyc" | xargs rm -rf
46      find $(CURDIR) -type f -name *.o | xargs rm -rf      find $(CURDIR) -type f -name "*.pyo" | xargs rm -rf
47      find $(CURDIR) -type f -name *.os | xargs rm -rf      find $(CURDIR) -type f -name "*.o" | xargs rm -rf
48      find $(CURDIR) -type f -name *.a | xargs rm -rf      find $(CURDIR) -type f -name "*.os" | xargs rm -rf
49        find $(CURDIR) -type f -name "*.a" | xargs rm -rf
50        -rm $(CURDIR)/doc/*.tex
51        -rm -rf $(CURDIR)/doc/html
52    #   dh_testroot
53      dh_clean      dh_clean
54    
55  install: build  install: build
56      dh_testdir      dh_testdir
57      dh_testroot  #   dh_testroot
58      dh_clean -k      dh_clean -k
59      dh_installdirs      dh_installdirs
60      mkdir -p $(CURDIR)/debian/tmp/usr      mkdir -p $(CURDIR)/debian/tmp/usr
61      cd $(CURDIR) && scons INSTALL_PREFIX=$(CURDIR)/debian/tmp/usr install      cd $(CURDIR) && $(SCONS) INSTALL_ROOT=$(CURDIR)/debian/tmp install
62      dh_install --sourcedir=debian/tmp      dh_install --autodest
63    
64  # Build architecture-independent files here.  # Build architecture-independent files here.
65  binary-indep:  binary-indep:
# Line 83  binary-arch: build install Line 81  binary-arch: build install
81      dh_fixperms      dh_fixperms
82      dh_makeshlibs      dh_makeshlibs
83      dh_installdeb      dh_installdeb
84      dh_shlibdeps -L libascend0 -l debian/libascend0/usr/lib      dh_shlibdeps -L ascend -l debian/ascend/usr/lib
85      dh_gencontrol      dh_gencontrol
86      dh_md5sums      dh_md5sums
87      dh_builddeb      dh_builddeb

Legend:
Removed from v.1396  
changed lines
  Added in v.1413

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