/[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 2028 by capela, Wed Nov 4 18:59:57 2009 UTC revision 3516 by capela, Tue Jun 18 07:49:48 2019 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  configure: configure-stamp
11  # from having to guess our platform (since we know it already)  configure-stamp:
 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  
   
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))  
         CFLAGS += -O0  
 else  
         CFLAGS += -O2  
 endif  
   
 config.status:  
12          dh_testdir          dh_testdir
13    
14          # Add here commands to configure the package.          # Add here commands to configure the package.
15          $(MAKE) -f Makefile.svn          ./autogen.sh
         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  
16    
17            ./configure --prefix=/usr
18            # --- end custom part for configure
19    
20  build: build-stamp          touch configure-stamp
21    
22  build-stamp:  config.status  build: build-stamp
23    build-stamp: configure-stamp
24          dh_testdir          dh_testdir
25    
26          # Add here commands to compile the package.          # Add here commands to compile the package.
27          $(MAKE)          $(MAKE)
28          #docbook-to-man debian/qsampler.sgml > qsampler.1          # --- end custom part for compiling
29    
30          touch build-stamp          touch build-stamp
31    
32  clean:  clean:
33          dh_testdir          dh_testdir
34          dh_testroot          dh_testroot
35          rm -f build-stamp          rm -f build-stamp configure-stamp
36    
37          # Add here commands to clean up after the build process.          # Add here commands to clean up after the build process.
38          -$(MAKE) -f Makefile.svn          ./autogen.sh clean
39          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  
   
40    
41          dh_clean          dh_clean
42    
# Line 68  install: build Line 46  install: build
46          dh_clean -k          dh_clean -k
47          dh_installdirs          dh_installdirs
48    
49          # Add here commands to install the package into debian/qsampler.          # Add here commands to install the package
50          $(MAKE) install DESTDIR=$(CURDIR)/debian/qsampler          $(MAKE) install DESTDIR=$(CURDIR)/debian/$(APPNAME)
51            # --- end custom part for installing
52    
53  # Build architecture-independent files here.  # Build architecture-independent files here.
54  binary-indep: build install  binary-indep: build install
55  # We have nothing to do by default.          # We have nothing to do by default.
56    
57  # Build architecture-dependent files here.  # Build architecture-dependent files here.
58  binary-arch: build install  binary-arch: build install
59          dh_testdir          dh_testdir
60          dh_testroot          dh_testroot
61          dh_installchangelogs ChangeLog  #       dh_installdebconf
62          dh_installdocs          dh_installdocs
63          dh_installexamples          dh_installexamples
64          dh_install          dh_installmenu
 #       dh_installmenu  
 #       dh_installdebconf  
65  #       dh_installlogrotate  #       dh_installlogrotate
66  #       dh_installemacsen  #       dh_installemacsen
67  #       dh_installpam  #       dh_installpam
68  #       dh_installmime  #       dh_installmime
69  #       dh_installinit  #       dh_installinit
70  #       dh_installcron          dh_installcron
71  #       dh_installinfo          dh_installman
72          dh_installman debian/qsampler.1          dh_installinfo
73    #       dh_undocumented
74            dh_installchangelogs
75          dh_link          dh_link
76          dh_strip          dh_strip
77          dh_compress          dh_compress
78          dh_fixperms          dh_fixperms
 #       dh_perl  
 #       dh_python  
79  #       dh_makeshlibs  #       dh_makeshlibs
80          dh_installdeb          dh_installdeb
81    #       dh_perl
82          dh_shlibdeps          dh_shlibdeps
83          dh_gencontrol          dh_gencontrol
84          dh_md5sums          dh_md5sums
85          dh_builddeb          dh_builddeb
86    
87  binary: binary-indep binary-arch  binary: binary-indep binary-arch
88  .PHONY: build clean binary-indep binary-arch binary install  .PHONY: build clean binary-indep binary-arch binary install configure

Legend:
Removed from v.2028  
changed lines
  Added in v.3516

  ViewVC Help
Powered by ViewVC