gnucash/Makefile.config.finish
Linas Vepstas 30d852ceea apply peticolas patch of 17 Jan 2000 00:15:12 -0800
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2001 57a11ea4-9604-0410-9ed3-97b8803252fd
2000-01-17 21:39:42 +00:00

26 lines
840 B
Makefile

# -*-makefile-*-
# This file is used at the end of the configure run. It handles
# setting up the runtime paths that will be embedded into the gnucash
# binary. It can't be done using AC_OUTPUT because we'd need to
# expand a variable that's defined in terms of ${prefix} before
# AC_OUTPUT, and prefix isn't guaranteed to be defined until AC_OUTPUT
# is called.
include ./Makefile.init
PWD := $(shell pwd)
all:
perl -p \
-e "s|\@GNC_RUNTIME_SHAREDIR\@|${GNC_SHAREDIR}|o;" \
-e "s|\@GNC_RUNTIME_CONFIGDIR\@|${GNC_SHAREDIR}|o" \
< src/scm/bootstrap.scm.in > src/scm/bootstrap.scm
perl -p \
-e "s|\@GNC_RUNTIME_SHAREDIR\@|${GNC_SHAREDIR}|o;" \
-e "s|\@GNC_RUNTIME_CONFIGDIR\@|${GNC_SHAREDIR}|o" \
< src/guile/gnucash.h.in > src/guile/gnucash.h
cd lib/g-wrap && \
./configure --prefix=${PWD}/lib/g-wrap-install