/[pkg-sql-ledger]/trunk/debian/rules
ViewVC logotype

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (hide annotations) (download)
Sun Jul 18 09:19:23 2004 UTC (8 years, 10 months ago) by pere
File size: 2579 byte(s)
Update to version 2.4.0.
1 pere 2 #!/usr/bin/make -f
2     # Sample debian/rules that uses debhelper.
3     # GNU copyright 1997 to 1999 by Joey Hess.
4    
5     # Uncomment this to turn on verbose mode.
6     #export DH_VERBOSE=1
7    
8     # This is the debhelper compatibility version to use.
9     export DH_COMPAT=3
10    
11 pere 3 include /usr/share/dpatch/dpatch.make
12 pere 2
13 pere 12 TARBALL_VERSION = 2.4.0
14    
15 pere 3 DEB_TARBALL = sql-ledger-$(TARBALL_VERSION).tar.gz
16 pere 2
17     ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
18     CFLAGS += -g
19     endif
20     ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
21     INSTALL_PROGRAM += -s
22     endif
23    
24 pere 4
25     debian/copyright:
26     cat debian/copyright.pre > debian/copyright
27     set -e ; \
28     for ALL in locale/*/COPYING ; do \
29     HEAD=$$(grep -n '# This program is free software' $$ALL |cut -f1 -d:); \
30     let HEAD=$$HEAD-1; \
31     head -$$HEAD $$ALL | tail +4 ; \
32     done | grep -v '^#$$' | sed -e 's/^# //' >> debian/copyright
33     cat debian/copyright.post >> debian/copyright
34    
35 pere 3 build-tree = $(CURDIR)/BUILD
36    
37     unpack: unpack-stamp
38     unpack-stamp: $(DEB_TARBALL)
39     touch unpack-stamp
40    
41     $(DEB_TARBALL): $(DEB_TARBALL)-stamp
42     $(DEB_TARBALL)-stamp:
43     mkdir -p $(build-tree)
44 pere 6 cd $(build-tree) && tar -zxf $(CURDIR)/$(DEB_TARBALL)
45 pere 3 touch $@
46    
47 pere 2 configure: configure-stamp
48 pere 3 configure-stamp: unpack patch-stamp
49 pere 2 dh_testdir
50     # Add here commands to configure the package.
51    
52     touch configure-stamp
53    
54    
55     build: build-stamp
56    
57     build-stamp: configure-stamp
58     dh_testdir
59    
60     # Add here commands to compile the package.
61 pere 3 $(MAKE) -C $(build-tree)/sql-ledger
62 pere 2 #/usr/bin/docbook-to-man debian/sql-ledger.sgml > sql-ledger.1
63    
64     touch build-stamp
65    
66 pere 3 clean: unpatch
67 pere 2 dh_testdir
68     dh_testroot
69 pere 3 rm -f build-stamp configure-stamp unpack-stamp $(DEB_TARBALL)-stamp
70     rm -rf $(build-tree)
71 pere 2
72     # Add here commands to clean up after the build process.
73 pere 3 #-$(MAKE) -C $(build-tree)/sql-ledger clean
74 pere 2
75     dh_clean
76    
77     install: build
78     dh_testdir
79     dh_testroot
80     dh_clean -k
81     dh_installdirs
82    
83     # Add here commands to install the package into debian/sql-ledger.
84 pere 3 $(MAKE) -C $(build-tree)/sql-ledger install DESTDIR=$(CURDIR)/debian/sql-ledger
85 pere 2
86    
87     # Build architecture-independent files here.
88     binary-indep: build install
89     # We have nothing to do by default.
90    
91     # Build architecture-dependent files here.
92     binary-arch: build install
93     dh_testdir
94     dh_testroot
95     # dh_installdebconf
96     dh_installdocs
97     dh_installexamples
98     dh_installmenu
99     # dh_installlogrotate
100     # dh_installinit
101     dh_installcron
102     dh_installman
103     dh_installinfo
104     dh_installchangelogs
105     dh_link
106     dh_strip
107     dh_compress
108     dh_fixperms
109     dh_installdeb
110     dh_perl
111     dh_shlibdeps
112     dh_gencontrol
113     dh_md5sums
114     dh_builddeb
115    
116     binary: binary-indep binary-arch
117     .PHONY: build clean binary-indep binary-arch binary install configure

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5