- # Add here commands to compile the package.
- #$(MAKE)
- #docbook-to-man debian/carnet-upgrade.sgml > carnet-upgrade.1
+ # Update package version in documentation
+ sed -e 's/%PKG_VERSION%/$(PKG_VERSION)/g' doc/carnet-upgrade-src.sgml \
+ > doc/carnet-upgrade.sgml
+
+ # Build txt docs
+ (cd doc; $(perlenv) debiandoc2text -l hr_HR.UTF-8 carnet-upgrade.sgml)
+
+ # Build one page html docs
+ rm -rf doc/carnet-upgrade.html
+ (cd doc; $(perlenv) 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; $(perlenv) debiandoc2pdf -l hr_HR.UTF-8 \
+ -s ../debian/fix_latex carnet-upgrade.sgml)
+ rm doc/carnet-upgrade.tpt