1 | # Maintainer's Makefile -*-Makefile-*- |
---|
2 | |
---|
3 | top_srcdir = .. |
---|
4 | srcdir = . |
---|
5 | |
---|
6 | SHELL = /bin/sh |
---|
7 | |
---|
8 | all: README fnchange.lst config.sed |
---|
9 | |
---|
10 | config.sed: config.in fnchange.in |
---|
11 | sed \ |
---|
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/||' \ |
---|
18 | -e 's|$$|,g\\\\\\|' \ |
---|
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-$@ |
---|
23 | mv t-$@ $@ |
---|
24 | rm -f t-script.sed script.sed |
---|
25 | |
---|
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/'`; \ |
---|
29 | sed \ |
---|
30 | -e '/^#/d' \ |
---|
31 | -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \ |
---|
32 | $(srcdir)/fnchange.in > t-$@ |
---|
33 | mv t-$@ $@ |
---|
34 | |
---|
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/\.//'`; \ |
---|
40 | sed \ |
---|
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-$@ |
---|
46 | mv t-$@ $@ |
---|