~ubuntu-branches/ubuntu/vivid/ssed/vivid

« back to all changes in this revision

Viewing changes to doc/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2004-03-23 16:45:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040323164536-r0jrs8udv1ftwoac
Tags: upstream-3.60
ImportĀ upstreamĀ versionĀ 3.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
info_TEXINFOS = sed.texi
 
3
dist_man_MANS = sed.1
 
4
EXTRA_DIST = sed.x sed-in.texi pcre.html groupify.sed
 
5
noinst_DATA = sed.texi
 
6
DISTCLEANFILES = sed.texi
 
7
CLEANFILES = sed.html
 
8
TEXI2DVI = $(top_srcdir)/config/texi2dvi --expand
 
9
HELP2MAN = $(top_srcdir)/config/help2man
 
10
 
 
11
# To produce better quality output, in the example sed
 
12
# scripts we group comments with lines following them;
 
13
# since mantaining the "@group...@end group" manually
 
14
# is a burden, we do this automatically
 
15
sed.texi: sed-in.texi groupify.sed
 
16
        sed -nf groupify.sed < sed-in.texi > sed.texi
 
17
 
 
18
sed.1: $(top_srcdir)/sed/sed.c sed.x
 
19
        $(HELP2MAN) -p sed --include sed.x $(top_builddir)/sed/sed > $(srcdir)/sed.1
 
20
 
 
21
dist-hook:
 
22
        touch $(distdir)/sed.1
 
23
 
 
24
# Having a dependancy on sed.info automatically makes
 
25
# sed.html dependant on sed.texi and all the included
 
26
# sources
 
27
if MAKEINFO_HTML
 
28
sed.html: sed.texi sed.info
 
29
        cd $(srcdir) \
 
30
          && $(MAKEINFO) --html `echo $< | sed 's,.*/,,'`
 
31
 
 
32
html: sed.html
 
33
 
 
34
.PHONY: html
 
35
endif
 
36
 
 
37
# These rules are used together with TEXI2HTML
 
38
if TEXI2HTML_HTML
 
39
sed.html: sed.texi sed.info
 
40
        cd $(srcdir) \
 
41
          && $(TEXI2HTML) `echo $< | sed 's,.*/,,'`
 
42
 
 
43
html: sed.html
 
44
 
 
45
.PHONY: html
 
46
endif
 
47
 
 
48
# This rule is used if --enable-html is passed
 
49
if BUILD_HTML
 
50
all: html
 
51
endif