/[svn]/qsampler/trunk/debian/rules
ViewVC logotype

Diff of /qsampler/trunk/debian/rules

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

revision 606 by flax, Fri Jun 3 12:12:02 2005 UTC revision 2832 by capela, Fri Jul 24 14:54:58 2015 UTC
# Line 1  Line 1 
1  #!/usr/bin/make -f  #!/usr/bin/make -f
2  # -*- makefile -*-  APPNAME := qsampler
 # Sample debian/rules that uses debhelper.  
 # This file was originally written by Joey Hess and Craig Small.  
 # As a special exception, when this file is copied by dh-make into a  
 # dh-make output file, you may use that output file without restriction.  
 # This special exception was added by Craig Small in version 0.37 of dh-make.  
3    
4  # Uncomment this to turn on verbose mode.  # Uncomment this to turn on verbose mode.
5  export DH_VERBOSE=1  #export DH_VERBOSE=1
6    
7  export QTDIR=/usr/share/qt3  # This is the debhelper compatibility version to use.
8    #export DH_COMPAT=4
9    
10  # These are used for cross-compiling and for saving the configure script  # Set Qt5 environment for qtchooser.
11  # from having to guess our platform (since we know it already)  export QT_SELECT=5
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)  
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)  
   
 CFLAGS = -Wall -g  
12    
13    CFLAGS = -g
14  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))  ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15          CFLAGS += -O0  CFLAGS += -O0
16  else  else
17          CFLAGS += -O2  CFLAGS += -O2
18  endif  endif
19    
20  config.status:  configure: configure-stamp
21    configure-stamp:
22          dh_testdir          dh_testdir
23    
24          # Add here commands to configure the package.          # Add here commands to configure the package.
25          $(MAKE) -f Makefile.cvs          -$(MAKE) -f Makefile.git
         chmod a+x configure  
         CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info  
26    
27            ./configure --prefix=/usr
28            # --- end custom part for configure
29    
30  build: build-stamp          touch configure-stamp
31    
32  build-stamp:  config.status  build: build-stamp
33    build-stamp: configure-stamp
34          dh_testdir          dh_testdir
35    
36          # Add here commands to compile the package.          # Add here commands to compile the package.
37          $(MAKE)          $(MAKE)
38          #docbook-to-man debian/qsampler.sgml > qsampler.1          # --- end custom part for compiling
39    
40          touch build-stamp          touch build-stamp
41    
42  clean:  clean:
43          dh_testdir          dh_testdir
44          dh_testroot          dh_testroot
45          rm -f build-stamp          rm -f build-stamp configure-stamp
46    
47          # Add here commands to clean up after the build process.          # Add here commands to clean up after the build process.
48          -$(MAKE) -f Makefile.cvs          -$(MAKE) -f Makefile.git clean
49          chmod a+x configure          # --- end custom part for cleaning up
         -$(MAKE) distclean  
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""  
         cp -f /usr/share/misc/config.sub config.sub  
 endif  
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""  
         cp -f /usr/share/misc/config.guess config.guess  
 endif  
   
50    
51          dh_clean          dh_clean
52    
# Line 68  install: build Line 56  install: build
56          dh_clean -k          dh_clean -k
57          dh_installdirs          dh_installdirs
58    
59          # Add here commands to install the package into debian/qsampler.          # Add here commands to install the package
60          $(MAKE) install DESTDIR=$(CURDIR)/debian/qsampler          $(MAKE) install DESTDIR=/usr/src/packages/BUILD/debian/$(APPNAME)
61            # --- end custom part for installing
62    
63  # Build architecture-independent files here.  # Build architecture-independent files here.
64  binary-indep: build install  binary-indep: build install
65  # We have nothing to do by default.          # We have nothing to do by default.
66    
67  # Build architecture-dependent files here.  # Build architecture-dependent files here.
68  binary-arch: build install  binary-arch: build install
69          dh_testdir          dh_testdir
70          dh_testroot          dh_testroot
71          dh_installchangelogs ChangeLog  #       dh_installdebconf
72          dh_installdocs          dh_installdocs
73          dh_installexamples          dh_installexamples
74          dh_install          dh_installmenu
 #       dh_installmenu  
 #       dh_installdebconf  
75  #       dh_installlogrotate  #       dh_installlogrotate
76  #       dh_installemacsen  #       dh_installemacsen
77  #       dh_installpam  #       dh_installpam
78  #       dh_installmime  #       dh_installmime
79  #       dh_installinit  #       dh_installinit
80  #       dh_installcron          dh_installcron
81  #       dh_installinfo          dh_installman
82          dh_installman debian/qsampler.1          dh_installinfo
83    #       dh_undocumented
84            dh_installchangelogs
85          dh_link          dh_link
86          dh_strip          dh_strip
87          dh_compress          dh_compress
88          dh_fixperms          dh_fixperms
 #       dh_perl  
 #       dh_python  
89  #       dh_makeshlibs  #       dh_makeshlibs
90          dh_installdeb          dh_installdeb
91    #       dh_perl
92          dh_shlibdeps          dh_shlibdeps
93          dh_gencontrol          dh_gencontrol
94          dh_md5sums          dh_md5sums
95          dh_builddeb          dh_builddeb
96    
97  binary: binary-indep binary-arch  binary: binary-indep binary-arch
98  .PHONY: build clean binary-indep binary-arch binary install  .PHONY: build clean binary-indep binary-arch binary install configure

Legend:
Removed from v.606  
changed lines
  Added in v.2832

  ViewVC Help
Powered by ViewVC