root/alternc-doc/trunk/debian/rules

Revision 1650, 3.4 kB (checked in by benjamin, 2 years ago)

adding frameset management to alternc-doc

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # This file is public domain software, originally written by Joey Hess.
4 #
5 # This version is for a multibinary package. It also allows you to build any
6 # of the binary packages independantly, via binary-<package> targets.
7
8 # Uncomment this to turn on verbose mode.
9 export DH_VERBOSE=1
10
11 ########################################
12 ## TODO
13 ## Virer les lignes # inutiles ou historiques (marquées ##)
14
15
16 # This has to be exported to make some magic below work.
17 export DH_OPTIONS
18
19 build: build-stamp
20 build-stamp:
21         dh_testdir
22
23 # compilation et installation des binaires
24 # pushd src; make; popd
25
26         rm -rf user.html/ admin.html/
27         mkdir user.html/ admin.html/
28         xsltproc --output user.html/ home.xsl user/index.xml
29         cp *.css user.html/
30         cp -R user/images user.html/
31
32         xsltproc --output admin.html/ home.xsl admin/index.xml
33         cp *.css admin.html/
34         cp -R admin/images admin.html/
35         ./makeframeset.sh
36
37         # HTML One page
38         # xsltproc --output $CURDIR/html/ $CURDIR/docbook-xsl-1.61.3/xhtml/chunk.xsl user/index.xml 2>&1 |tee $CURDIR/log.txt
39
40 # PDF
41 #       pushd user && docbook2pdf index.xml && pdfjadetex index.tex && popd
42 #       pushd admin && docbook2pdf index.xml && pdfjadetex index.tex && popd
43
44         touch build-stamp
45
46 clean:
47         dh_testdir
48         dh_testroot
49         rm -f build-stamp
50         rm -rf *.out *.log *.aux *.tex admin.html user.html
51
52 # Add here commands to clean up after the build process.
53 #-$(MAKE) clean
54 #-$(MAKE) distclean
55 # pushd src; make clean; popd
56
57         dh_clean
58
59 install: DH_OPTIONS=
60 install: build
61         dh_testdir
62         dh_testroot
63         dh_clean -k
64         dh_installdirs
65
66         cp -R user.html/* debian/alternc-doc/usr/share/doc/alternc-doc/user/
67 #       cp user/index.pdf debian/alternc-doc/usr/share/doc/alternc-doc/user.pdf
68         cp -R admin.html/* debian/alternc-doc/usr/share/doc/alternc-doc/admin/
69 #       cp admin/index.pdf debian/alternc-doc/usr/share/doc/alternc-doc/admin.pdf
70
71 # Add here commands to install the package into debian/alternc-awstats.
72 #$(MAKE) prefix=`pwd`/debian/alternc-awstats/usr install
73
74
75 #       dh_install --prefix=install/alternc
76
77 # This single target is used to build all the packages, all at once, or
78 # one at a time. So keep in mind: any options passed to commands here will
79 # affect _all_ packages. Anything you want to only affect one package
80 # should be put in another target, such as the install target.
81
82 binary-common: build install
83         dh_testdir
84         dh_testroot
85         dh_installchangelogs
86         dh_installdocs
87 #       dh_installexamples
88 #       dh_installmenu
89         dh_installdebconf
90 #       dh_installlogrotate
91 #       dh_installemacsen
92 #       dh_installpam
93 #       dh_installmime
94 #       dh_installinit
95 #       dh_installman
96         dh_installcron
97 #       dh_installinfo
98 #       dh_undocumented
99 #       dh_installman
100 #       dh_strip
101         dh_link
102         dh_compress
103         dh_fixperms
104
105
106 #       dh_makeshlibs
107         dh_installdeb
108         dh_perl
109 #       dh_shlibdeps
110         dh_gencontrol -- -cdebian/control
111         dh_md5sums
112         dh_builddeb
113
114 # Build architecture independant packages using the common target.
115 binary-indep: build install binary-common
116 # (Uncomment this next line if you have such packages.)
117          $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
118 # HTML Chunked USER DOC
119
120
121 # Build architecture dependant packages using the common target.
122 binary-arch: build install binary-common
123 #       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
124
125 # Any other binary targets build just one binary package at a time.
126 # binary-%: build install
127 #       make -f debian/rules binary-common DH_OPTIONS=-p$*
128
129 #binary: binary-indep binary-arch
130 # .PHONY: build clean binary-indep binary-arch binary install
131
132 binary: binary-common
133
134 .PHONY: build clean binary install
Note: See TracBrowser for help on using the browser.