diff options
author | Daniel Burrows <dburrows@debian.org> | 2005-10-01 23:40:49 +0000 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2005-10-01 23:40:49 +0000 |
commit | db949f313eb10b747a875067623b89c47ee2b81d (patch) | |
tree | 95891553696a84cc382aa9a92bacdc88950361e1 /doc/cs/Makefile.am | |
parent | e5434a5aaf63b1602c81606824b94f0368e4aaa0 (diff) | |
download | aptitude-db949f313eb10b747a875067623b89c47ee2b81d.tar.gz |
[aptitude @ Import the Subversion repository into darcs.]
Diffstat (limited to 'doc/cs/Makefile.am')
-rw-r--r-- | doc/cs/Makefile.am | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/doc/cs/Makefile.am b/doc/cs/Makefile.am new file mode 100644 index 00000000..0ce4e019 --- /dev/null +++ b/doc/cs/Makefile.am @@ -0,0 +1,65 @@ +# automake doesn't play nicely with DocBook :( + +SUBDIRS=images + +EXTRA_DIST=aptitude.xml + +LANGCODE=cs + +# Put documentation in /usr/share/doc/aptitude (by default) +docdir=$(datadir)/doc/$(PACKAGE) +htmldir=$(docdir)/html/$(LANGCODE) + +localemandir=$(mandir)/$(LANGCODE) + +README=README.$(LANGCODE) +MANPAGE=aptitude.$(LANGCODE).8 + +IMAGES = $(wildcard images/*.png) + +all-local: doc-stamp + +clean-local: + -rm -fr output-html/ output-txt/ output-man/ + -rm -f doc-stamp doc-css-stamp doc-html-stamp doc-txt-stamp doc-man-stamp + -rm -fr $(MANPAGE) $(README) + +# pkgdata_DATA=$(README) + +install-data-hook: + $(mkinstalldirs) $(DESTDIR)$(localemandir)/man8 + $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(localemandir)/man8/aptitude.8 + + $(mkinstalldirs) $(DESTDIR)$(htmldir)/images + $(INSTALL_DATA) output-html/*.html output-html/*.css $(DESTDIR)$(htmldir) + $(INSTALL_DATA) output-html/images/* $(DESTDIR)$(htmldir)/images + +doc-stamp: doc-html-stamp doc-css-stamp $(README) $(MANPAGE) + touch doc-stamp + +$(MANPAGE): aptitude.xml $(srcdir)/../aptitude-man.xsl + -rm -fr output-man + xsltproc -o output-man/aptitude.8 $(srcdir)/../aptitude-man.xsl $(srcdir)/aptitude.xml + mv output-man/aptitude.8 $(MANPAGE) + +$(README): aptitude.xml $(srcdir)/../aptitude-txt.xsl $(srcdir)/../aptitude-common.xsl ../aptitude-txt.style + -rm -fr output-txt/ + xsltproc -o output-txt/index.html $(srcdir)/../aptitude-txt.xsl $(srcdir)/aptitude.xml + html2text -width 80 -ascii -nobs -rcfile $(srcdir)/../aptitude-txt.style output-txt/index.html | sed 's/—/--/g' > $(README) + +doc-css-stamp: doc-html-stamp $(srcdir)/../aptitude.css + rm -f output-html/aptitude.css + cp $(srcdir)/../aptitude.css output-html/ + touch doc-css-stamp + +doc-html-stamp: aptitude.xml ../aptitude-html.xsl ../aptitude-common.xsl $(IMAGES) + -rm -fr output-html/ + + xsltproc -o output-html/ $(srcdir)/../aptitude-html.xsl $(srcdir)/aptitude.xml + + mkdir output-html/images/ + ln -f $(srcdir)/images/*.png output-html/images/ + for x in caution important note tip warning; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.png output-html/images/; done + for x in home next prev up; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.gif output-html/images/; done + + touch doc-html-stamp |