X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Frules;h=15f214a976cee78b92cc48f1dc247e8e885b68cc;hb=a26fded43562e80021ad20d6066a6667fa78e0e8;hp=19795a66b837589d46d6d99a026f8b92a19184de;hpb=1e70ff3fe998033fd93c8cd177082b8cd566d2ce;p=carnet-upgrade.git diff --git a/debian/rules b/debian/rules index 19795a6..15f214a 100755 --- a/debian/rules +++ b/debian/rules @@ -11,12 +11,22 @@ build: build-stamp -build-stamp: +build-stamp: doc/carnet-upgrade.sgml dh_testdir - # Add here commands to compile the package. - #$(MAKE) - #docbook-to-man debian/carnet-upgrade.sgml > carnet-upgrade.1 + # Build txt docs + (cd doc; debiandoc2text -l hr_HR.UTF-8 carnet-upgrade.sgml) + + # Build one page html docs + rm -rf doc/carnet-upgrade.html + (cd doc; debiandoc2html -l hr_HR.UTF-8 -1 carnet-upgrade.sgml) + mv doc/carnet-upgrade.html/index.html doc/index.html + rmdir doc/carnet-upgrade.html + mv doc/index.html doc/carnet-upgrade.html + + # Build pdf docs + (cd doc; debiandoc2pdf -l hr_HR.UTF-8 carnet-upgrade.sgml) + rm doc/carnet-upgrade.tpt touch $@ @@ -25,8 +35,8 @@ clean: dh_testroot rm -f build-stamp - # Add here commands to clean up after the build process. - #$(MAKE) clean + # Clean up after the build process. + rm -rf doc/carnet-upgrade.{txt,html,pdf,tpt} dh_clean @@ -36,16 +46,10 @@ install: build dh_clean -k dh_installdirs - # Add here commands to install the package into debian/carnet-upgrade. - #$(MAKE) DESTDIR=$(CURDIR)/debian/carnet-upgrade install - + # Install the package. # Build architecture-independent files here. binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install dh_testdir dh_testroot dh_installchangelogs @@ -75,5 +79,9 @@ binary-arch: build install dh_md5sums dh_builddeb -binary: binary-indep binary-arch +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do here. + +binary: binary-indep .PHONY: build clean binary-indep binary-arch binary install