1
## Process this file with automake to produce Makefile.in
2
info_TEXINFOS = sed.texi
4
EXTRA_DIST = sed.x sed-in.texi pcre.html groupify.sed
6
DISTCLEANFILES = sed.texi
8
TEXI2DVI = $(top_srcdir)/config/texi2dvi --expand
9
HELP2MAN = $(top_srcdir)/config/help2man
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
18
sed.1: $(top_srcdir)/sed/sed.c sed.x
19
$(HELP2MAN) -p sed --include sed.x $(top_builddir)/sed/sed > $(srcdir)/sed.1
22
touch $(distdir)/sed.1
24
# Having a dependancy on sed.info automatically makes
25
# sed.html dependant on sed.texi and all the included
28
sed.html: sed.texi sed.info
30
&& $(MAKEINFO) --html `echo $< | sed 's,.*/,,'`
37
# These rules are used together with TEXI2HTML
39
sed.html: sed.texi sed.info
41
&& $(TEXI2HTML) `echo $< | sed 's,.*/,,'`
48
# This rule is used if --enable-html is passed