]> git.saurik.com Git - bison.git/blame - djgpp/Makefile.maint
* data/location.cc: New.
[bison.git] / djgpp / Makefile.maint
CommitLineData
cd72b08b
JMG
1# DJGPP Maintainer's Makefile -*-Makefile-*-
2# Requires GNU sed
3
4top_srcdir = ..
5srcdir = .
6
7SHELL = /bin/sh
8
9all: README
10
11README: README.in $(top_srcdir)/configure
12 PACKAGE=`grep "^[ ]*PACKAGE=" $(top_srcdir)/configure | sed -e 's/^[ ]*PACKAGE=//'`; \
13 VERSION=`grep "^[ ]*VERSION=" $(top_srcdir)/configure | sed -e 's/^[ ]*VERSION=//' -e s/[\"\']//g`; \
14 package_version=`echo "$${VERSION}" | sed 's/\.//g'`; \
15 tree_version=`echo "$${VERSION}" | sed 's/\.//2g'`; \
16 sed \
17 -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \
18 -e "s/@VERSION@/$${VERSION}/g" \
19 -e "s/@PACKAGE_VERSION@/$$package_version/g" \
20 -e "s/@TREE_VERSION@/$$tree_version/g" \
21 $(srcdir)/README.in > t-$@
22 mv t-$@ $@