root/alternc-doc/branches/r0/debian/rules
| Revision 1119, 3.6 kB (checked in by benjamin, 4 years ago) | |
|---|---|
| |
| 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/ files/home.xsl files/user/index.xml |
| 29 | xsltproc --output admin.html/ files/home.xsl files/admin/index.xml |
| 30 | |
| 31 | # HTML One page |
| 32 | # xsltproc --output $CURDIR/html/ $CURDIR/files/docbook-xsl-1.61.3/xhtml/chunk.xsl user/index.xml 2>&1 |tee $CURDIR/log.txt |
| 33 | |
| 34 | |
| 35 | # pushd files/user && docbook2pdf index.xml && pdfjadetex index.tex && popd |
| 36 | # pushd files/admin && docbook2pdf index.xml && pdfjadetex index.tex && popd |
| 37 | |
| 38 | touch build-stamp |
| 39 | |
| 40 | clean: |
| 41 | dh_testdir |
| 42 | dh_testroot |
| 43 | rm -f build-stamp |
| 44 | rm -rf *.out *.log *.aux *.tex admin.html user.html |
| 45 | |
| 46 | # Add here commands to clean up after the build process. |
| 47 | #-$(MAKE) clean |
| 48 | #-$(MAKE) distclean |
| 49 | # pushd src; make clean; popd |
| 50 | |
| 51 | dh_clean |
| 52 | |
| 53 | install: DH_OPTIONS= |
| 54 | install: build |
| 55 | dh_testdir |
| 56 | dh_testroot |
| 57 | dh_clean -k |
| 58 | dh_installdirs |
| 59 | |
| 60 | cp -R user.html/* debian/alternc-doc/usr/share/doc/alternc-doc/user/ |
| 61 | cp files/*.css debian/alternc-doc/usr/share/doc/alternc-doc/user/ |
| 62 | cp -R files/user/images debian/alternc-doc/usr/share/doc/alternc-doc/user/ |
| 63 | # cp user/index.pdf debian/alternc-doc/usr/share/doc/alternc-doc/user.pdf |
| 64 | |
| 65 | cp -R admin.html/* debian/alternc-doc/usr/share/doc/alternc-doc/admin/ |
| 66 | cp files/*.css debian/alternc-doc/usr/share/doc/alternc-doc/admin/ |
| 67 | cp -R files/admin/images debian/alternc-doc/usr/share/doc/alternc-doc/admin/ |
| 68 | # cp admin/index.pdf debian/alternc-doc/usr/share/doc/alternc-doc/admin.pdf |
| 69 | |
| 70 | # Add here commands to install the package into debian/alternc-awstats. |
| 71 | #$(MAKE) prefix=`pwd`/debian/alternc-awstats/usr install |
| 72 | |
| 73 | |
| 74 | # dh_install --prefix=install/alternc |
| 75 | |
| 76 | # This single target is used to build all the packages, all at once, or |
| 77 | # one at a time. So keep in mind: any options passed to commands here will |
| 78 | # affect _all_ packages. Anything you want to only affect one package |
| 79 | # should be put in another target, such as the install target. |
| 80 | |
| 81 | binary-common: build install |
| 82 | dh_testdir |
| 83 | dh_testroot |
| 84 | dh_installchangelogs |
| 85 | dh_installdocs |
| 86 | # dh_installexamples |
| 87 | # dh_installmenu |
| 88 | dh_installdebconf |
| 89 | # dh_installlogrotate |
| 90 | # dh_installemacsen |
| 91 | # dh_installpam |
| 92 | # dh_installmime |
| 93 | # dh_installinit |
| 94 | # dh_installman |
| 95 | dh_installcron |
| 96 | # dh_installinfo |
| 97 | # dh_undocumented |
| 98 | # dh_installman |
| 99 | # dh_strip |
| 100 | dh_link |
| 101 | dh_compress |
| 102 | dh_fixperms |
| 103 | |
| 104 | |
| 105 | # dh_makeshlibs |
| 106 | dh_installdeb |
| 107 | dh_perl |
| 108 | # dh_shlibdeps |
| 109 | dh_gencontrol -- -cdebian/control |
| 110 | dh_md5sums |
| 111 | dh_builddeb |
| 112 | |
| 113 | # Build architecture independant packages using the common target. |
| 114 | binary-indep: build install binary-common |
| 115 | # (Uncomment this next line if you have such packages.) |
| 116 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common |
| 117 | # HTML Chunked USER DOC |
| 118 | |
| 119 | |
| 120 | # Build architecture dependant packages using the common target. |
| 121 | binary-arch: build install binary-common |
| 122 | # $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common |
| 123 | |
| 124 | # Any other binary targets build just one binary package at a time. |
| 125 | # binary-%: build install |
| 126 | # make -f debian/rules binary-common DH_OPTIONS=-p$* |
| 127 | |
| 128 | #binary: binary-indep binary-arch |
| 129 | # .PHONY: build clean binary-indep binary-arch binary install |
| 130 | |
| 131 | binary: binary-common |
| 132 | |
| 133 | .PHONY: build clean binary install |
Note: See TracBrowser for help on using the browser.
