X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/blobdiff_plain/74c50df9aca7e5416d8e7d3d2c8f385ff103b081..cac38f7fe315b2869985b49beaca4677c568b853:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 29080c2..7ca039d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,7 +33,7 @@ CLEANFILES = ###-------------------------------------------------------------------------- ### Handy variables. -confsubst = $(srcdir)/confsubst +confsubst = $(srcdir)/confsubst.in mkdir_p = $(srcdir)/config/install-sh -d ###-------------------------------------------------------------------------- @@ -83,7 +83,17 @@ pkgdata_DATA += getdate.y getdate.h ## 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