Files
sed/doc/Makefile.am
T
Paolo Bonzini 123b874f30 fix out of srcdir build
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-7
2008-01-09 16:10:45 +01:00

53 lines
1.4 KiB
Makefile

## 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
sed.texi: sed-in.texi groupify.sed
sed -nf groupify.sed < $(srcdir)/sed-in.texi > $(srcdir)/sed.texi
sed.1: $(top_srcdir)/sed/sed.c $(top_srcdir)/configure.ac $(srcdir)/sed.x
$(HELP2MAN) -p sed --include $(srcdir)/sed.x $(SED) > $(srcdir)/sed.1
dist-hook:
touch $(distdir)/sed.1
# 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
cd $(srcdir) \
&& $(MAKEINFO) --html `echo $< | sed 's,.*/,,'`
html: sed.html
.PHONY: html
endif
# These rules are used together with TEXI2HTML
if TEXI2HTML_HTML
sed.html: sed.texi sed.info
cd $(srcdir) \
&& $(TEXI2HTML) `echo $< | sed 's,.*/,,'`
html: sed.html
.PHONY: html
endif
# This rule is used if --enable-html is passed
if BUILD_HTML
all: html
endif