* src/bin/Makefile.am (gncoverridedir): new var.

(gncoverride_SCRIPTS): new var -- add guile.
(guile): new target -- guile override stub script.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5966 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning
2001-11-21 19:40:31 +00:00
parent 81216f5c20
commit 44bc2e7a4f
+16 -2
View File
@@ -1,17 +1,30 @@
bin_SCRIPTS = gnucash-env gnucash gnucash-run-script gnucash-make-guids
gncoverridedir = ${GNC_LIBEXECDIR}/script-override
gncoverride_SCRIPTS = guile
EXTRA_DIST = \
.cvsignore \
gnucash-env \
gnucash.in \
guile.in \
gnucash-make-guids.in \
gnucash-run-script.in
## We borrow guile's convention and use @-...-@ as the substitution
## brackets here, instead of the usual @...@. This prevents autoconf
## brackets below, instead of the usual @...@. This prevents autoconf
## from substituting the values directly into the left-hand sides of
## the sed substitutions. *sigh*
guile: guile.in
rm -f $@.tmp
sed < $@.in > $@.tmp \
-e 's:@-GUILE-@:${GUILE}:'
mv $@.tmp $@
BUILT_SOURCES = guile
CLEANFILES = guile
gnucash-run-script: gnucash-run-script.in
rm -f $@.tmp
sed < $@.in > $@.tmp \
@@ -43,7 +56,8 @@ gnucash-env: gnucash-env.in
-e 's:@-GNC_SCM_INSTALL_DIR-@:${GNC_SCM_INSTALL_DIR}:g' \
-e 's:@-GNC_LIBDIR-@:${GNC_LIBDIR}:g' \
-e 's:@-GNC_MODULE_DIR-@:${GNC_MODULE_DIR}:g' \
-e 's:@-GNC_PKGLIB_INSTALLDIR-@:${pkglibdir}:g'
-e 's:@-GNC_PKGLIB_INSTALLDIR-@:${pkglibdir}:g' \
-e 's:@-GNC_SCRIPT_OVERRIDE_DIR-@:${gncoverridedir}:g'
mv $@.tmp $@
chmod u+x $@
BUILT_SOURCES += gnucash-env