1 # Maintainer's Makefile -*-Makefile-*-
8 all: README fnchange.lst config.sed
10 config.sed: config.in fnchange.in
12 -e '/plural-[1-9]\+/ d' \
13 -e 's|\.h\.in|\\\\\\\\.h\\\\\\\\.in|' \
14 -e 's|\.in\.in|\\\\\\\\.in\\\\\\\\.in|' \
15 -e 's|\.sh\.in|\\\\\\\\.sh\\\\\\\\.in|' \
16 -e 's|^.*/\([A-Za-z0-9\\._+-]\+\)[ ]\+| s,\1,|' \
17 -e '/\/tests\// !s|@V@.*/||;s|@V@/tests/||' \
19 -e 's|^#.*$$|/@append_list_of_renamed_files@/ c\\|' \
20 $(srcdir)/fnchange.in > t-script.sed
21 sed '$$ s|\\||' t-script.sed > script.sed
22 sed -f script.sed $(srcdir)/config.in > t-$@
24 rm -f t-script.sed script.sed
26 fnchange.lst: fnchange.in $(top_srcdir)/configure.in
27 PACKAGE=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE(\([^,)]*\),.*$$/\1/'`; \
28 VERSION=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE([^,)]*, *\([^,)]*\).*$$/\1/'`; \
31 -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
32 $(srcdir)/fnchange.in > t-$@
35 README: README.in $(top_srcdir)/configure.in
36 PACKAGE=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE(\([^,)]*\),.*$$/\1/'`; \
37 VERSION=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE([^,)]*, *\([^,)]*\).*$$/\1/'`; \
38 packageversion=`echo "$${VERSION}" | sed 's/\..*\.//'`; \
39 treeversion=`echo "$${VERSION}" | sed 's/\.//'`; \
41 -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
42 -e "s/@VER@/$${VERSION}/g" \
43 -e "s/@packageversion@/$$packageversion/g" \
44 -e "s/@treeversion@/$$treeversion/g" \
45 $(srcdir)/README.in > t-$@