diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
commit | 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc (patch) | |
tree | 63ef546b10a81d461e5cf5ed9e98a68cd7dee1aa /src/sed/doc/Makefile.am | |
parent | Initial commit. (diff) | |
download | kbuild-upstream/1%0.1.9998svn3589+dfsg.tar.xz kbuild-upstream/1%0.1.9998svn3589+dfsg.zip |
Adding upstream version 1:0.1.9998svn3589+dfsg.upstream/1%0.1.9998svn3589+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/sed/doc/Makefile.am | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/sed/doc/Makefile.am b/src/sed/doc/Makefile.am new file mode 100644 index 0000000..80ecafd --- /dev/null +++ b/src/sed/doc/Makefile.am @@ -0,0 +1,55 @@ +## Process this file with automake to produce Makefile.in +info_TEXINFOS = sed.texi +sed_TEXINFOS = config.texi version.texi +dist_man_MANS = sed.1 +dist_noinst_DATA = sed.x sed-in.texi +dist_noinst_SCRIPTS = groupify.sed +CLEANFILES = sed.html +TEXI2DVI = $(top_srcdir)/config/texi2dvi --expand +HELP2MAN = $(top_srcdir)/config/help2man +SED = $(top_builddir)/sed/sed + +# To produce better quality output, in the example sed +# scripts we group comments with lines following them; +# since mantaining the "@group...@end group" manually +# is a burden, we do this automatically +$(srcdir)/sed.texi: sed-in.texi $(srcdir)/groupify.sed + sed -nf $(srcdir)/groupify.sed \ + < $(srcdir)/sed-in.texi > $(srcdir)/sed.texi + +sed.1: $(top_srcdir)/sed/sed.c $(top_srcdir)/configure.ac $(srcdir)/sed.x + $(HELP2MAN) --name "stream editor for filtering and transforming text" \ + -p sed --include $(srcdir)/sed.x $(SED) > $(srcdir)/sed.1 + +dist-hook: + touch $(distdir)/sed.1 + +# This rule is used if --enable-html is passed +if BUILD_HTML +docdir = $(datadir)/doc +pkgdocdir = $(datadir)/doc/$(PACKAGE)-$(VERSION) +pkgdoc_DATA = sed.html + +all: html + +html: sed.html + +.PHONY: html +endif + +# Having a dependancy on sed.info automatically makes +# sed.html dependant on sed.texi and all the included +# sources +if MAKEINFO_HTML +sed.html: sed.texi sed.info + builddir=`pwd` && cd $(srcdir) && \ + $(MAKEINFO) --html --no-split -o $$builddir/sed.html sed.texi +endif + +# These rules are used together with TEXI2HTML +if TEXI2HTML_HTML +sed.html: sed.texi sed.info + cp $(srcdir)/*.texi . && \ + $(TEXI2HTML) sed.texi && \ + rm *.texi +endif |