Home | History | Annotate | Download | only in doc
      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 s-texi
      6 dist_noinst_SCRIPTS = groupify.sed
      7 TEXI2DVI = $(top_srcdir)/build-aux/texi2dvi --expand
      8 HELP2MAN = $(top_srcdir)/build-aux/help2man
      9 SED = $(top_builddir)/sed/sed
     10 
     11 AM_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 
     28 sed.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 
     32 dist-hook:
     33 	touch $(distdir)/sed.1
     34