From d22e0f9f99f3df11759420e5868044f40a3366dc Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Wed, 21 Nov 2001 17:14:30 +0000 Subject: [PATCH] * src/bin/Makefile.am: new file. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5944 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/bin/Makefile.am | 62 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/bin/Makefile.am diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am new file mode 100644 index 0000000000..8d0ee4e9c9 --- /dev/null +++ b/src/bin/Makefile.am @@ -0,0 +1,62 @@ + +bin_SCRIPTS = gnucash-env gnucash gnucash-run-script gnucash-make-guids + +EXTRA_DIST = \ + .cvsignore \ + gnucash-env \ + gnucash.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 +## from substituting the values directly into the left-hand sides of +## the sed substitutions. *sigh* +gnucash-run-script: gnucash-run-script.in + rm -f $@.tmp + sed < $@.in > $@.tmp \ + -e 's:@-GUILE-@:${GUILE}:' \ + -e 's:@-GNC_GUILE_MODULE_DIR-@:${GNC_SHAREDIR}/guile-modules:' \ + -e 's:@-GNC_LIB_INSTALLDIR-@:${libdir}:' \ + -e 's:@-GNC_PKGLIB_INSTALLDIR-@:${pkglibdir}:' \ + -e 's:@-GNC_SCM_INSTALL_DIR-@:${GNC_SCM_INSTALL_DIR}:' \ + -e 's:@-G_WRAP_MODULE_DIR-@:${G_WRAP_MODULE_DIR}:' + mv $@.tmp $@ +BUILT_SOURCES = gnucash-run-script +CLEANFILES = gnucash-run-script + +gnucash-make-guids: gnucash-make-guids.in + rm -f $@.tmp + sed < $@.in > $@.tmp \ + -e 's:@-GNUCASH_RUN_SCRIPT-@:${bindir}/gnucash-run-script:' \ + -e 's:@-THIS_SCRIPT-@:${bindir}/$@:' + mv $@.tmp $@ +BUILT_SOURCES += gnucash-make-guids +CLEANFILES += gnucash-make-guids + +gnucash-env: gnucash-env.in + rm -f $@.tmp + sed < $@.in > $@.tmp \ + -e 's:@-GUILE-@:${GUILE}:g' \ + -e 's:@-G_WRAP_MODULE_DIR-@:${G_WRAP_MODULE_DIR}:g' \ + -e 's:@-GNC_GUILE_MODULE_DIR-@:${GNC_SHAREDIR}/guile-modules:g' \ + -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' + mv $@.tmp $@ + chmod u+x $@ +BUILT_SOURCES += gnucash-env +CLEANFILES += gnucash-env + +gnucash: gnucash.in + rm -f $@.tmp + sed < $@.in > $@.tmp \ + -e 's:@-GNC_SHAREDIR-@:${GNC_SHAREDIR}:g' \ + -e 's:@-G_WRAP_MODULE_DIR-@:${G_WRAP_MODULE_DIR}:g' \ + -e 's:@-GNC_LIBDIR-@:${GNC_LIBDIR}:g' \ + -e 's:@-GNC_MODULE_DIR-@:${GNC_MODULE_DIR}:g' + mv $@.tmp $@ + chmod u+x $@ +BUILT_SOURCES += gnucash +CLEANFILES += gnucash