source: trunk/third/gettext/djgpp/Makefile.maint @ 16931

Revision 16931, 1.6 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16930, which included commits to RCS files with non-trunk default branches.
Line 
1# Maintainer's Makefile                                         -*-Makefile-*-
2
3top_srcdir = ..
4srcdir = .
5
6SHELL = /bin/sh
7
8all: README fnchange.lst config.sed
9
10config.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
25fnchange.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
34README: 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-$@ $@
Note: See TracBrowser for help on using the repository browser.