VirtualBox

source: kBuild/vendor/sed/current/doc/Makefile.am

Last change on this file was 599, checked in by bird, 18 years ago

GNU sed 4.1.5.

File size: 1.6 KB
Line 
1## Process this file with automake to produce Makefile.in
2info_TEXINFOS = sed.texi
3sed_TEXINFOS = config.texi version.texi
4dist_man_MANS = sed.1
5dist_noinst_DATA = sed.x sed-in.texi
6dist_noinst_SCRIPTS = groupify.sed
7CLEANFILES = sed.html
8TEXI2DVI = $(top_srcdir)/config/texi2dvi --expand
9HELP2MAN = $(top_srcdir)/config/help2man
10SED = $(top_builddir)/sed/sed
11
12# To produce better quality output, in the example sed
13# scripts we group comments with lines following them;
14# since mantaining the "@group...@end group" manually
15# is a burden, we do this automatically
16$(srcdir)/sed.texi: sed-in.texi $(srcdir)/groupify.sed
17 sed -nf $(srcdir)/groupify.sed \
18 < $(srcdir)/sed-in.texi > $(srcdir)/sed.texi
19
20sed.1: $(top_srcdir)/sed/sed.c $(top_srcdir)/configure.ac $(srcdir)/sed.x
21 $(HELP2MAN) --name "stream editor for filtering and transforming text" \
22 -p sed --include $(srcdir)/sed.x $(SED) > $(srcdir)/sed.1
23
24dist-hook:
25 touch $(distdir)/sed.1
26
27# This rule is used if --enable-html is passed
28if BUILD_HTML
29docdir = $(datadir)/doc
30pkgdocdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
31pkgdoc_DATA = sed.html
32
33all: html
34
35html: sed.html
36
37.PHONY: html
38endif
39
40# Having a dependancy on sed.info automatically makes
41# sed.html dependant on sed.texi and all the included
42# sources
43if MAKEINFO_HTML
44sed.html: sed.texi sed.info
45 builddir=`pwd` && cd $(srcdir) && \
46 $(MAKEINFO) --html --no-split -o $$builddir/sed.html sed.texi
47endif
48
49# These rules are used together with TEXI2HTML
50if TEXI2HTML_HTML
51sed.html: sed.texi sed.info
52 cp $(srcdir)/*.texi . && \
53 $(TEXI2HTML) sed.texi && \
54 rm *.texi
55endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette