~ubuntu-branches/ubuntu/trusty/libapache2-mod-rivet/trusty

« back to all changes in this revision

Viewing changes to .pc/doc-nohtmlremove.patch/doc/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Massimo Manghi
  • Date: 2013-10-02 11:44:17 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20131002114417-aimbnyf22r39iv39
Tags: 2.1.3-1
* New upstream code 2.1.3 
* Removed package dh-apache2 from Build-Depends
* Undone patch removing distclean target from doc/Makefile.am

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for Rivet documentation
2
 
 
3
 
# Copyright 2004-2005 The Apache Software Foundation
4
 
 
5
 
# Licensed under the Apache License, Version 2.0 (the "License");
6
 
# you may not use this file except in compliance with the License.
7
 
# You may obtain a copy of the License at
8
 
 
9
 
#       http://www.apache.org/licenses/LICENSE-2.0
10
 
 
11
 
# Unless required by applicable law or agreed to in writing, software
12
 
# distributed under the License is distributed on an "AS IS" BASIS,
13
 
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 
# See the License for the specific language governing permissions and
15
 
# limitations under the License.
16
 
 
17
 
# $Id: Makefile.am 1419054 2012-12-09 18:01:03Z mxmanghi $
18
 
 
19
 
.PHONY: clean 
20
 
 
21
 
MANDIRS = html/ html/images
22
 
PICTURES:=$(wildcard images/*.png)
23
 
EXAMPLES_SGML:=$(wildcard examples-sgml/*.*)
24
 
EXAMPLES:=$(wildcard examples/*.*)
25
 
 
26
 
# English, multiple files.
27
 
html/index.html: rivet.xml rivet-chunk.xsl rivet.xsl xml/*.xml
28
 
        xsltproc --stringparam html.stylesheet rivet.css \
29
 
        --stringparam html.ext ".html" \
30
 
        --stringparam chunker.output.encoding UTF-8  \
31
 
        --nonet -o html/ rivet-chunk.xsl rivet.xml
32
 
 
33
 
# English, one big file.
34
 
html/rivet.html: rivet.xml rivet-nochunk.xsl rivet.xsl xml/*.xml
35
 
        xsltproc --stringparam html.stylesheet rivet.css \
36
 
        --stringparam html.ext ".html" \
37
 
        --stringparam chunker.output.encoding UTF-8  \
38
 
        --nonet -o html/rivet.html rivet-nochunk.xsl \
39
 
        rivet.xml
40
 
 
41
 
# This means these are not build automatically, but at least
42
 
# people aren't forced to build them either.
43
 
 
44
 
docs: picts html/rivet.css html/index.html
45
 
 
46
 
docs-nochunk: picts html/rivet.css html/rivet.html
47
 
 
48
 
html/rivet.css: mandirs rivet.css
49
 
        cp -v rivet.css html/
50
 
 
51
 
# target picts checks the directory tree exists, then lets target 'graphics' copy new
52
 
# or updated files to the target tree.
53
 
 
54
 
picts:  mandirs graphics
55
 
 
56
 
graphics: $(PICTURES)
57
 
        for gfile in $?; do \
58
 
            cp -v $$gfile html/images/ ; \
59
 
        done ; \
60
 
        touch graphics
61
 
 
62
 
examples: 
63
 
        ( echo 'set source_examples { $(EXAMPLES) }; source ./convert_examples.tcl' | @TCLSH_PROG@ ; )
64
 
 
65
 
#  target that builds the essential directory tree that will get the html and 
66
 
#  graphic files of the manual
67
 
 
68
 
mandirs: $(MANDIRS)
69
 
 
70
 
$(MANDIRS):
71
 
        mkdir $@  
72
 
 
73
 
# this target cleans everything up in the html directory
74
 
 
75
 
distclean:
76
 
        -rm html/*.html 
77
 
        -rm html/*.css
78
 
        -rm html/images/*.*
79
 
        -rmdir html/images
80
 
        -rmdir html
81
 
        if [ -e graphics ]; then \
82
 
            rm graphics ; \
83
 
        fi 
84
 
        -rm Makefile
85
 
 
86
 
.PHONY: examples