| 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 |
$(MAKE)
|
| 25 |
#docbook-to-man debian/ledgersmb.sgml > ledgersmb.1
|
| 26 |
|
| 27 |
touch $@
|
| 28 |
|
| 29 |
clean: unpatch
|
| 30 |
dh_testdir
|
| 31 |
dh_testroot
|
| 32 |
rm -f build-stamp configure-stamp
|
| 33 |
|
| 34 |
# Add here commands to clean up after the build process.
|
| 35 |
#-$(MAKE) clean
|
| 36 |
rm -f ledgersmb.conf
|
| 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 |
sed -e 's|^spool = .*$$|spool = /var/lib/ledgersmb/spool|' \
|
| 48 |
-e 's|^latex : 1$$|latex : 0|' \
|
| 49 |
-e '/^localepath/d' \
|
| 50 |
ledgersmb.conf.default > ledgersmb.conf
|
| 51 |
|
| 52 |
|
| 53 |
$(MAKE) install DESTDIR=$(CURDIR)/debian/ledgersmb
|
| 54 |
chmod +x $(CURDIR)/debian/ledgersmb/usr/share/ledgersmb/upgrade-templates.pl
|
| 55 |
chmod -x $(CURDIR)/debian/ledgersmb/usr/share/ledgersmb/favicon.ico
|
| 56 |
|
| 57 |
# Build architecture-independent files here.
|
| 58 |
binary-indep: build install
|
| 59 |
dh_testdir
|
| 60 |
dh_testroot
|
| 61 |
dh_installchangelogs Changelog
|
| 62 |
dh_installdocs
|
| 63 |
dh_installexamples
|
| 64 |
# dh_install
|
| 65 |
dh_lintian
|
| 66 |
# dh_installdebconf
|
| 67 |
dh_link
|
| 68 |
dh_compress
|
| 69 |
dh_fixperms
|
| 70 |
dh_installdeb
|
| 71 |
dh_gencontrol
|
| 72 |
dh_md5sums
|
| 73 |
dh_builddeb
|
| 74 |
|
| 75 |
# Build architecture-dependent files here.
|
| 76 |
binary-arch: build install
|
| 77 |
# We have nothing to do by default.
|
| 78 |
|
| 79 |
binary: binary-indep binary-arch
|
| 80 |
.PHONY: build clean binary-indep binary-arch binary install
|