~ubuntu-branches/ubuntu/vivid/aptitude/vivid

« back to all changes in this revision

Viewing changes to .pc/0003-Uniformly-use-srcdir-when-grabbing-files-for-install.patch/doc/cs/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-06-22 12:32:56 UTC
  • mfrom: (1.8.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110622123256-8aox9w9ch3x72dci
Tags: 0.6.4-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/05aptitude: never autoremove kernels
  - drop aptitude-doc to Suggests
  - 03_branding.dpatch: ubuntu branding
  - 04_changelog.dpatch: take changelogs from changelogs.ubuntu.com
  - 09_ubuntu_fortify_source.dpatch: Suppress a number of warnings (turned
    into errors by -Werror) triggered by Ubuntu's default of
    -D_FORTIFY_SOURCE=2.
  - 11_ubuntu_uses_sudo.dpatch: fix status line of 'Become root' menu entry
    to not refer to su.
  - 12_point_manpage_to_doc_package.dpatch: point Finnish manpage to the
    correct place for further info
  - 14_html2text_preferred.dpatch: switch back to html2text in favor of
    elinks, since html2text is in main and elinks isn't.
* dropped 01_intltool_update.dpatch
* updated 15_ftbfs_new_apt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# automake doesn't play nicely with DocBook :(
2
 
 
3
 
SUBDIRS=images
4
 
 
5
 
EXTRA_DIST=aptitude.xml
6
 
 
7
 
LANGCODE=cs
8
 
 
9
 
# Put documentation in /usr/share/doc/aptitude (by default)
10
 
docdir=$(datadir)/doc/$(PACKAGE)
11
 
htmldir=$(docdir)/html/$(LANGCODE)
12
 
 
13
 
localemandir=$(mandir)/$(LANGCODE)
14
 
 
15
 
README=README.$(LANGCODE)
16
 
MANPAGE=aptitude.$(LANGCODE).8
17
 
 
18
 
HTML2TEXT=$(srcdir)/../html-to-text
19
 
 
20
 
IMAGES = $(wildcard images/*.png)
21
 
 
22
 
all-local: doc-stamp
23
 
 
24
 
clean-local:
25
 
        -rm -fr output-html/ output-txt/ output-man/
26
 
        -rm -f doc-stamp doc-css-stamp doc-html-stamp doc-txt-stamp doc-man-stamp
27
 
        -rm -fr $(MANPAGE) $(README)
28
 
 
29
 
# pkgdata_DATA=$(README)
30
 
 
31
 
install-data-hook:
32
 
        $(mkinstalldirs) $(DESTDIR)$(localemandir)/man8
33
 
        $(INSTALL_DATA) $(MANPAGE) $(DESTDIR)$(localemandir)/man8/aptitude.8
34
 
 
35
 
        $(mkinstalldirs) $(DESTDIR)$(htmldir)/images
36
 
        $(INSTALL_DATA) output-html/*.html output-html/*.css $(DESTDIR)$(htmldir)
37
 
        $(INSTALL_DATA) output-html/images/* $(DESTDIR)$(htmldir)/images
38
 
 
39
 
doc-stamp: doc-html-stamp doc-css-stamp $(README) $(MANPAGE)
40
 
        touch doc-stamp
41
 
 
42
 
$(MANPAGE): aptitude.xml $(srcdir)/../aptitude-man.xsl
43
 
        -rm -fr output-man
44
 
        xsltproc -o output-man/aptitude.8 $(srcdir)/../aptitude-man.xsl $(srcdir)/aptitude.xml
45
 
        mv output-man/aptitude.8 $(MANPAGE)
46
 
 
47
 
$(README): aptitude.xml $(srcdir)/../aptitude-txt.xsl $(srcdir)/../aptitude-common.xsl
48
 
        -rm -fr output-txt/
49
 
        xsltproc -o output-txt/index.html $(srcdir)/../aptitude-txt.xsl $(srcdir)/aptitude.xml
50
 
        $(HTML2TEXT) output-txt/index.html > $(README)
51
 
 
52
 
doc-css-stamp: doc-html-stamp $(srcdir)/../aptitude.css
53
 
        rm -f output-html/aptitude.css
54
 
        cp $(srcdir)/../aptitude.css output-html/
55
 
        touch doc-css-stamp
56
 
 
57
 
doc-html-stamp: aptitude.xml ../aptitude-html.xsl ../aptitude-common.xsl $(IMAGES)
58
 
        -rm -fr output-html/
59
 
 
60
 
        xsltproc -o output-html/ $(srcdir)/../aptitude-html.xsl $(srcdir)/aptitude.xml
61
 
 
62
 
        mkdir output-html/images/
63
 
        ln -f $(srcdir)/images/*.png output-html/images/
64
 
        for x in caution important note tip warning; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.png output-html/images/; done
65
 
        for x in home next prev up; do ln -s /usr/share/xml/docbook/stylesheet/nwalsh/images/$$x.gif output-html/images/; done
66
 
 
67
 
        touch doc-html-stamp