Backport hr_HR.UTF-8 debiandoc locale to etch.
[carnet-upgrade.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
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.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
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
15 endif
16
17
18 build: build-stamp
19
20 build-stamp: doc/carnet-upgrade.sgml
21         dh_testdir
22
23         # Build txt docs
24         (cd doc; $(perlenv) debiandoc2text -l hr_HR.UTF-8 carnet-upgrade.sgml)
25
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
33
34         # Build pdf docs
35         (cd doc; $(perlenv) debiandoc2pdf -l hr_HR.UTF-8 \
36                 -s ../debian/fix_latex carnet-upgrade.sgml)
37         rm doc/carnet-upgrade.tpt
38
39         touch $@
40
41 clean:
42         dh_testdir
43         dh_testroot
44         rm -f build-stamp
45
46         # Clean up after the build process.
47         rm -rf doc/carnet-upgrade.{txt,html,pdf,tpt}
48
49         dh_clean 
50
51 install: build
52         dh_testdir
53         dh_testroot
54         dh_clean -k 
55         dh_installdirs
56
57         # Install the package.
58
59 # Build architecture-independent files here.
60 binary-indep: build install
61         dh_testdir
62         dh_testroot
63         dh_installchangelogs 
64         dh_installdocs
65         dh_installexamples
66         dh_install
67 #       dh_installmenu
68         dh_installdebconf       
69 #       dh_installlogrotate
70 #       dh_installemacsen
71 #       dh_installpam
72 #       dh_installmime
73 #       dh_python
74 #       dh_installinit
75 #       dh_installcron
76 #       dh_installinfo
77         dh_installman
78         dh_link
79         dh_strip
80         dh_compress
81         dh_fixperms
82 #       dh_perl
83 #       dh_makeshlibs
84         dh_installdeb
85         dh_shlibdeps
86         dh_gencontrol
87         dh_md5sums
88         dh_builddeb
89
90 # Build architecture-dependent files here.
91 binary-arch: build install
92 # We have nothing to do here.
93
94 binary: binary-indep
95 .PHONY: build clean binary-indep binary-arch binary install