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 # check if locale is available or use a local copy
13 ifeq ($(wildcard /usr/share/perl5/DebianDoc_SGML/Locale/hr_HR.UTF-8),)
14 perlenv = PERL5LIB=../debian/perl5
20 build-stamp: doc/carnet-upgrade.sgml
24 (cd doc; $(perlenv) debiandoc2text -l hr_HR.UTF-8 carnet-upgrade.sgml)
26 # Build one page html docs
27 rm -rf doc/carnet-upgrade.html
28 (cd doc; $(perlenv) debiandoc2html -l hr_HR.UTF-8 \
29 -1 carnet-upgrade.sgml)
30 mv doc/carnet-upgrade.html/index.html doc/index.html
31 rmdir doc/carnet-upgrade.html
32 mv doc/index.html doc/carnet-upgrade.html
35 (cd doc; $(perlenv) debiandoc2pdf -l hr_HR.UTF-8 \
36 -s ../debian/fix_latex 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}
57 # Install the package.
59 # Build architecture-independent files here.
60 binary-indep: build install
90 # Build architecture-dependent files here.
91 binary-arch: build install
92 # We have nothing to do here.
95 .PHONY: build clean binary-indep binary-arch binary install