3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
12 PKG_VERSION = $(shell dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p')
14 build: build-arch build-indep
15 build-arch: build-stamp
16 build-indep: build-stamp
18 build-stamp: doc/carnet-upgrade-src.sgml
21 # Update package version in documentation
22 sed -e 's/%PKG_VERSION%/$(PKG_VERSION)/g' doc/carnet-upgrade-src.sgml \
23 > doc/carnet-upgrade.sgml
26 (cd doc; debiandoc2text -l hr_HR.UTF-8 carnet-upgrade.sgml)
28 # Build one page html docs
29 rm -rf doc/carnet-upgrade.html
30 (cd doc; debiandoc2html -l hr_HR.UTF-8 -1 carnet-upgrade.sgml)
31 mv doc/carnet-upgrade.html/index.html doc/index.html
32 rmdir doc/carnet-upgrade.html
33 mv doc/index.html doc/carnet-upgrade.html
36 (cd doc; debiandoc2pdf -l hr_HR.UTF-8 carnet-upgrade.sgml)
37 rm doc/carnet-upgrade.tpt
46 # Clean up after the build process.
47 rm -rf doc/carnet-upgrade.{txt,html,pdf,tpt,sgml}
57 # Install the package.
59 # Build architecture-independent files here.
60 binary-indep: build install
67 # Update package version in source
68 sed -i -e 's/%PKG_VERSION%/$(PKG_VERSION)/g' \
69 debian/carnet-upgrade/usr/share/carnet-upgrade/cn-upgrade
70 # Remove documentation template
71 rm -f debian/carnet-upgrade/usr/share/doc/carnet-upgrade/carnet-upgrade-src.sgml
95 # Build architecture-dependent files here.
96 binary-arch: build install
97 # We have nothing to do here.
100 .PHONY: build clean binary-indep binary-arch binary install