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|[ ]\+.*/|,|' \ |
---|
16 | -e 's|$$|,g\\\\\\|' \ |
---|
17 | -e 's|^.*/| s,|' \ |
---|
18 | -e 's|^#.*$$|/@append_list_of_renamed_files@/ c\\|' \ |
---|
19 | $(srcdir)/fnchange.in > t-script.sed |
---|
20 | sed '$$ s|\\||' t-script.sed > script.sed |
---|
21 | sed -f script.sed $(srcdir)/config.in > t-$@ |
---|
22 | mv t-$@ $@ |
---|
23 | rm -f t-script.sed script.sed |
---|
24 | |
---|
25 | fnchange.lst: fnchange.in $(top_srcdir)/configure.in |
---|
26 | PACKAGE=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE(\([^,)]*\),.*$$/\1/'`; \ |
---|
27 | VERSION=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE([^,)]*, *\([^,)]*\).*$$/\1/'`; \ |
---|
28 | sed \ |
---|
29 | -e '/^#/d' \ |
---|
30 | -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \ |
---|
31 | $(srcdir)/fnchange.in > t-$@ |
---|
32 | mv t-$@ $@ |
---|
33 | |
---|
34 | README: README.in $(top_srcdir)/configure.in |
---|
35 | PACKAGE=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE(\([^,)]*\),.*$$/\1/'`; \ |
---|
36 | VERSION=`grep AM_INIT_AUTOMAKE $(top_srcdir)/configure.in | sed -e 's/AM_INIT_AUTOMAKE([^,)]*, *\([^,)]*\).*$$/\1/'`; \ |
---|
37 | packageversion=`echo "$${VERSION}" | sed 's/\..*\.//'`; \ |
---|
38 | treeversion=`echo "$${VERSION}" | sed 's/\.//'`; \ |
---|
39 | sed \ |
---|
40 | -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \ |
---|
41 | -e "s/@VER@/$${VERSION}/g" \ |
---|
42 | -e "s/@packageversion@/$$packageversion/g" \ |
---|
43 | -e "s/@treeversion@/$$treeversion/g" \ |
---|
44 | $(srcdir)/README.in > t-$@ |
---|
45 | mv t-$@ $@ |
---|