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 s-texi 6dist_noinst_SCRIPTS = groupify.sed 7TEXI2DVI = $(top_srcdir)/build-aux/texi2dvi --expand 8HELP2MAN = $(top_srcdir)/build-aux/help2man 9SED = $(top_builddir)/sed/sed 10 11AM_MAKEINFOHTMLFLAGS = --no-split 12 13# To produce better quality output, in the example sed 14# scripts we group comments with lines following them; 15# since mantaining the "@group...@end group" manually 16# is a burden, we do this automatically 17$(srcdir)/sed.texi: $(srcdir)/s-texi 18$(srcdir)/s-texi: sed-in.texi $(srcdir)/groupify.sed 19 sed -nf $(srcdir)/groupify.sed \ 20 < $(srcdir)/sed-in.texi > $(srcdir)/sed-tmp.texi 21 if cmp $(srcdir)/sed.texi $(srcdir)/sed-tmp.texi; then \ 22 rm -f $(srcdir)/sed-tmp.texi; \ 23 else \ 24 mv -f $(srcdir)/sed-tmp.texi $(srcdir)/sed.texi; \ 25 fi 26 echo stamp > $(srcdir)/s-texi 27 28sed.1: $(top_srcdir)/sed/sed.c $(top_srcdir)/configure.ac $(srcdir)/sed.x 29 $(HELP2MAN) --name "stream editor for filtering and transforming text" \ 30 -p sed --include $(srcdir)/sed.x -o $(srcdir)/sed.1 $(SED) 31 32dist-hook: 33 touch $(distdir)/sed.1 34