1 | ## Process this file with automake to produce Makefile.in
|
---|
2 | info_TEXINFOS = sed.texi
|
---|
3 | sed_TEXINFOS = config.texi version.texi
|
---|
4 | dist_man_MANS = sed.1
|
---|
5 | dist_noinst_DATA = sed.x sed-in.texi
|
---|
6 | dist_noinst_SCRIPTS = groupify.sed
|
---|
7 | CLEANFILES = sed.html
|
---|
8 | TEXI2DVI = $(top_srcdir)/config/texi2dvi --expand
|
---|
9 | HELP2MAN = $(top_srcdir)/config/help2man
|
---|
10 | SED = $(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 |
|
---|
20 | sed.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 |
|
---|
24 | dist-hook:
|
---|
25 | touch $(distdir)/sed.1
|
---|
26 |
|
---|
27 | # This rule is used if --enable-html is passed
|
---|
28 | if BUILD_HTML
|
---|
29 | docdir = $(datadir)/doc
|
---|
30 | pkgdocdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
|
---|
31 | pkgdoc_DATA = sed.html
|
---|
32 |
|
---|
33 | all: html
|
---|
34 |
|
---|
35 | html: sed.html
|
---|
36 |
|
---|
37 | .PHONY: html
|
---|
38 | endif
|
---|
39 |
|
---|
40 | # Having a dependancy on sed.info automatically makes
|
---|
41 | # sed.html dependant on sed.texi and all the included
|
---|
42 | # sources
|
---|
43 | if MAKEINFO_HTML
|
---|
44 | sed.html: sed.texi sed.info
|
---|
45 | builddir=`pwd` && cd $(srcdir) && \
|
---|
46 | $(MAKEINFO) --html --no-split -o $$builddir/sed.html sed.texi
|
---|
47 | endif
|
---|
48 |
|
---|
49 | # These rules are used together with TEXI2HTML
|
---|
50 | if TEXI2HTML_HTML
|
---|
51 | sed.html: sed.texi sed.info
|
---|
52 | cp $(srcdir)/*.texi . && \
|
---|
53 | $(TEXI2HTML) sed.texi && \
|
---|
54 | rm *.texi
|
---|
55 | endif
|
---|