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

Diff of /trunk/debian/rules

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

revision 1522 by jpye, Fri May 18 09:20:26 2007 UTC revision 1523 by jpye, Sat Jun 30 14:55:05 2007 UTC
# Line 2  Line 2 
2  # -*- makefile -*-  # -*- makefile -*-
3    
4  CFLAGS = -Wall -g  CFLAGS = -Wall -g
5  SCONS_OPTIONS = CC="ccache gcc" CXX="ccache g++" INSTALL_PREFIX=/usr -j2  
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)  SCONS= scons $(SCONS_OPTIONS)
12    
13  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
# Line 25  build: build-stamp Line 30  build: build-stamp
30  build-stamp:  build-stamp:
31      dh_testdir      dh_testdir
32      cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models      cd $(CURDIR) && $(SCONS) libascend tcltk pygtk models
     cd $(CURDIR) && $(SCONS) doc/book.pdf  
33      touch build-stamp      touch build-stamp
34    
35  clean:  clean:
36      dh_testdir      dh_testdir
37      rm -f build-stamp      rm -f build-stamp
     -cd $(CURDIR) && $(SCONS) -c  
     find $(CURDIR) -name ".scon*" | xargs rm -rf  
     find $(CURDIR) -type f -name "*.pyc" | xargs rm -rf  
     find $(CURDIR) -type f -name "*.pyo" | xargs rm -rf  
     find $(CURDIR) -type f -name "*.o" | xargs rm -rf  
     find $(CURDIR) -type f -name "*.os" | xargs rm -rf  
     find $(CURDIR) -type f -name "*.a" | xargs rm -rf  
     -rm $(CURDIR)/doc/*.tex  
     -rm -rf $(CURDIR)/doc/html  
 #   dh_testroot  
38      dh_clean      dh_clean
39    
40  install: build  install: build

Legend:
Removed from v.1522  
changed lines
  Added in v.1523

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