Fixed documentation building.
[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 build: build-stamp
13
14 build-stamp: doc/carnet-upgrade.sgml
15         dh_testdir
16
17         # Build txt docs
18         (cd doc; debiandoc2text -l hr_HR.UTF-8 carnet-upgrade.sgml)
19
20         # Build one page html docs
21         rm -rf doc/carnet-upgrade.html
22         (cd doc; debiandoc2html -l hr_HR.UTF-8 -1 carnet-upgrade.sgml)
23         mv doc/carnet-upgrade.html/index.html doc/index.html
24         rmdir doc/carnet-upgrade.html
25         mv doc/index.html doc/carnet-upgrade.html
26
27         # Build pdf docs
28         (cd doc; debiandoc2pdf  -l hr_HR.UTF-8 carnet-upgrade.sgml)
29         rm doc/carnet-upgrade.tpt
30
31         touch $@
32
33 clean:
34         dh_testdir
35         dh_testroot
36         rm -f build-stamp
37
38         # Clean up after the build process.
39         rm -rf doc/carnet-upgrade.{txt,html,pdf,tpt}
40
41         dh_clean 
42
43 install: build
44         dh_testdir
45         dh_testroot
46         dh_clean -k 
47         dh_installdirs
48
49         # Install the package.
50
51 # Build architecture-independent files here.
52 binary-indep: build install
53         dh_testdir
54         dh_testroot
55         dh_installchangelogs 
56         dh_installdocs
57         dh_installexamples
58         dh_install
59 #       dh_installmenu
60         dh_installdebconf       
61 #       dh_installlogrotate
62 #       dh_installemacsen
63 #       dh_installpam
64 #       dh_installmime
65 #       dh_python
66 #       dh_installinit
67 #       dh_installcron
68 #       dh_installinfo
69         dh_installman
70         dh_link
71         dh_strip
72         dh_compress
73         dh_fixperms
74 #       dh_perl
75 #       dh_makeshlibs
76         dh_installdeb
77         dh_shlibdeps
78         dh_gencontrol
79         dh_md5sums
80         dh_builddeb
81
82 # Build architecture-dependent files here.
83 binary-arch: build install
84 # We have nothing to do here.
85
86 binary: binary-indep
87 .PHONY: build clean binary-indep binary-arch binary install