diff options
author | Daniel Hartwig <mandyke@gmail.com> | 2012-06-01 21:47:02 +0800 |
---|---|---|
committer | Daniel Hartwig <mandyke@gmail.com> | 2012-06-01 21:47:02 +0800 |
commit | e8350caacbcaef6efbba8a9dea32e2c25c5b5689 (patch) | |
tree | 1ebe510a19876fda031f962f4bae96712e139456 /doc/de | |
parent | 1d9d2bd8d8dffaadf180800f5c13945aa16e0958 (diff) | |
download | aptitude-e8350caacbcaef6efbba8a9dea32e2c25c5b5689.tar.gz |
Update to the doc buildlib; all translations ported
All doc translations now use the new buildlib rule files
which is cleaner and much easier to maintain.
This involves many changes and a general cleanup. Some of
the more noticable changes:
* doc:
- html docs no longer install to $docdir/html, but respect
the htmldir option of configure (which defaults to $docdir)
- build is more parallel
* buildlib/doc.mk:
- Standard makefile rules for documentation
* buildlib/docbook.mk:
- Makefile rules for targets from docbook source
* buildlib/po4a.mk:
- Makefile rules for targets from po4a translations
* doc/Makefile.am, doc/??/Makefile.am:
- rename LANGCODE to LC
- update to use buildlib files; most of these files are now
very short
* configure.ac:
- suppress portability warnings as we require GNU make
- include bugreport address
- check for tools used to generate the documentation:
po4a, xsltproc, fop, rsvg-convert
Diffstat (limited to 'doc/de')
-rw-r--r-- | doc/de/Makefile.am | 79 |
1 files changed, 9 insertions, 70 deletions
diff --git a/doc/de/Makefile.am b/doc/de/Makefile.am index 5494f2da..e5ccf10d 100644 --- a/doc/de/Makefile.am +++ b/doc/de/Makefile.am @@ -1,76 +1,15 @@ -# automake doesn't play nicely with DocBook :( +SUBDIRS = +EXTRA_DIST = -# no full manual yet -SUBDIRS= -#SUBDIRS=images +LC = de -LANGCODE=de -MANPAGE=aptitude.$(LANGCODE).8 -# How much of the manual should actually at least be translated. -PERCENT_TRANSLATED=0 # status: 0.75% -MANPAGE_PERCENT_TRANSLATED=0 # status: 31% -README=README.$(LANGCODE) -XMLSOURCES=aptitude.xml manpage.xml $(srcdir)/../aptitude-common.xsl +PO4A_TRANSLATED = aptitude.xml manpage.xml -# Put documentation in /usr/share/doc/aptitude (by default) -docdir=$(datadir)/doc/$(PACKAGE) -localemandir=$(mandir)/$(LANGCODE) -htmldir=$(docdir)/html/$(LANGCODE) +include $(top_srcdir)/buildlib/doc.mk +include $(top_srcdir)/buildlib/po4a.mk -HTML2TEXT=$(srcdir)/../html-to-text +DOCBOOK_TARGETS = docbook-man -IMAGES = $(wildcard $(srcdir)/images/*.png) +include $(top_srcdir)/buildlib/docbook.mk -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) aptitude.8 $(README) *.tmp - -rm -fr aptitude.xml manpage.xml - -install-data-hook: - $(mkinstalldirs) $(DESTDIR)$(localemandir)/man8 - $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(localemandir)/man8/aptitude.8 - -# $(mkinstalldirs) $(htmldir)/images -# $(INSTALL_DATA) output-html/*.html output-html/*.css $(htmldir) -# $(INSTALL_DATA) output-html/images/* $(htmldir)/images -# $(INSTALL_DATA) $(srcdir)/$(README) $(DESTDIR)$(pkgdatadir)/$(README) - -#doc-stamp: doc-html-stamp doc-css-stamp $(README) $(MANPAGE) -doc-stamp: $(MANPAGE) - touch doc-stamp - -aptitude.xml: $(srcdir)/../en/aptitude.xml $(srcdir)/../po4a/po/$(LANGCODE).po $(srcdir)/../po4a/add_$(LANGCODE)/addendum.1.$(LANGCODE) - po4a-translate -k $(PERCENT_TRANSLATED) -M utf-8 -f docbook -m $(srcdir)/../en/aptitude.xml -p $(srcdir)/../po4a/po/$(LANGCODE).po -l aptitude.xml - -manpage.xml: $(srcdir)/../en/manpage.xml $(srcdir)/../po4a/po/$(LANGCODE).po $(srcdir)/../po4a/add_$(LANGCODE)/addendum.1.$(LANGCODE) - po4a-translate -k $(MANPAGE_PERCENT_TRANSLATED) -M utf-8 -f docbook -m $(srcdir)/../en/manpage.xml -p $(srcdir)/../po4a/po/$(LANGCODE).po -l manpage.xml - -$(MANPAGE): $(XMLSOURCES) $(srcdir)/../aptitude-man.xsl - -rm -fr output-man $(MANPAGE) - xsltproc -o output-man/aptitude.8 $(srcdir)/../aptitude-man.xsl aptitude.xml - mv output-man/aptitude.8 $(MANPAGE) - -$(README): $(XMLSOURCES) $(srcdir)/../aptitude-txt.xsl - -rm -fr output-txt - xsltproc -o output-txt/index.html $(srcdir)/../aptitude-txt.xsl aptitude.xml - $(HTML2TEXT) output-txt/index.html utf-8 > $(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: $(XMLSOURCES) $(srcdir)/../aptitude-html.xsl $(IMAGES) - -rm -fr output-html/ - - xsltproc -o output-html/ $(srcdir)/../aptitude-html.xsl 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 +all-local: $(DOCBOOK_TARGETS) |