~mdw
/
cfd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
confsubst: Rename to confsubst.in and substitute.
[cfd]
/
Makefile.am
diff --git
a/Makefile.am
b/Makefile.am
index
29080c2
..
7ca039d
100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-33,7
+33,7
@@
CLEANFILES =
###--------------------------------------------------------------------------
### Handy variables.
###--------------------------------------------------------------------------
### Handy variables.
-confsubst = $(srcdir)/confsubst
+confsubst = $(srcdir)/confsubst
.in
mkdir_p = $(srcdir)/config/install-sh -d
###--------------------------------------------------------------------------
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
## Scripts.
pkgdata_SCRIPTS += install-ac
pkgdata_SCRIPTS += maninst
+
+## confsubst
pkgdata_SCRIPTS += 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
## Testsuites.
pkgdata_DATA += autotest.am