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

Contents of /ledger-smb/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 349 - (show annotations) (download)
Sat Dec 24 03:35:03 2011 UTC (17 months, 3 weeks ago) by jame-guest
File size: 2070 byte(s)
Correct name of Makefile being tested for.
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DESTDIR = $(CURDIR)/debian/ledgersmb
7 INSTALL = install
8
9
10 configure: configure-stamp
11 configure-stamp:
12 dh_testdir
13 # Add here commands to configure the package.
14
15 touch configure-stamp
16
17
18 build: build-stamp
19
20 build-stamp: configure-stamp
21 dh_testdir
22
23 # Add here commands to compile the package.
24 #docbook-to-man debian/ledgersmb.sgml > ledgersmb.1
25
26 touch $@
27
28 clean:
29 dh_testdir
30 dh_testroot
31 rm -f build-stamp configure-stamp
32
33 # Add here commands to clean up after the build process.
34 rm -f ledgersmb-httpd.conf
35 rm -f ledgersmb.conf
36 if test -e Makefile; then $(MAKE) distclean; fi
37
38 dh_clean
39
40 install: build
41 dh_testdir
42 dh_testroot
43 dh_prep
44 dh_installdirs
45
46 # Add here commands to install the package into debian/ledgersmb.
47
48 cp ledgersmb-httpd.conf.template ledgersmb-httpd.conf
49
50 sed -e 's|^spool = .*$$|spool = /var/lib/ledgersmb/spool|' \
51 -e 's|^latex : 1$$|latex : 0|' \
52 -e '/^localepath/d' \
53 ledgersmb.conf.default > ledgersmb.conf
54
55 perl Makefile.PL --skipdeps
56 $(MAKE)
57
58 # Corrections to file permissions
59 chmod +x $(CURDIR)/blib/lib/*.pl
60 chmod +x $(CURDIR)/scripts/*.pl
61 chmod +x $(CURDIR)/sql/modules/*.sh
62 chmod +x $(CURDIR)/tools/*.sh
63 chmod -x $(CURDIR)/locale/po/*
64 chmod -x $(CURDIR)/locale/html/*
65 chmod -x $(CURDIR)/sql/*sql
66 chmod -x $(CURDIR)/sql/coa/*sql
67 chmod -x $(CURDIR)/LedgerSMB/*pm
68 chmod -x $(CURDIR)/LedgerSMB/Auth/*pm
69 chmod -x $(CURDIR)/LedgerSMB/Taxes/*pm
70 chmod -x $(CURDIR)/LedgerSMB/Template/*pm
71
72 # Build architecture-independent files here.
73 binary-indep: build install
74 dh_testdir
75 dh_testroot
76 dh_installchangelogs Changelog
77 dh_installdocs
78 dh_installexamples
79 dh_install
80 dh_lintian
81 # dh_installdebconf
82 dh_link
83 dh_compress
84 dh_fixperms
85 dh_installdeb
86 dh_perl
87 dh_gencontrol
88 dh_md5sums
89 dh_builddeb
90
91 # Build architecture-dependent files here.
92 binary-arch: build install
93 # We have nothing to do by default.
94
95 binary: binary-indep binary-arch
96 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5