###--------------------------------------------------------------------------
### Handy variables.
-confsubst = $(srcdir)/confsubst
+confsubst = $(srcdir)/confsubst.in
mkdir_p = $(srcdir)/config/install-sh -d
###--------------------------------------------------------------------------
## Scripts.
pkgdata_SCRIPTS += install-ac
pkgdata_SCRIPTS += maninst
+
+## confsubst
pkgdata_SCRIPTS += confsubst
+CLEANFILES += confsubst
+EXTRA_DIST += confsubst.in
+
+confsubst: confsubst.in Makefile
+ $(confsubst) $(srcdir)/confsubst.in >$@.new \
+ VERSION=$(VERSION)
+ chmod +x $@.new
+ mv $@.new $@
## Testsuites.
pkgdata_DATA += autotest.am
### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
set -e
-
VERSION="@VERSION@"
###--------------------------------------------------------------------------