mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-30 04:33:55 -06:00
a14bf2bfab
* src/test/test-stuff.c (failure): don't print num if == -1. (success): same. (get_random_account): move here from test-xml-account.c (get_random_split): move here from test-xml-transaction.c (get_random_transaction): same. (success_args): New func. (success): Simplified version (failure_args): new func. (failure): Simplified version. * src/engine/io-gncbin-r.c: same as below. * src/engine/TransLog.c (xaccTransWriteLog): same as below. * src/engine/Group.c (xaccGroupMergeAccounts): same as below. * src/engine/Backend.c (xaccTransactionGetBackend): Convert to not use the split's acc part directly, but only to access through funcs * src/engine/sixtp-dom-parsers.c (dom_tree_generic_parse): Add generic parser. * src/engine/gnc-account-xml-v2.c (gnc_account_end_handler): use generic parser extracted from here and used here and gnc-transaction-iml-v2.c * src/engine/Transaction.c (xaccInitSplit): Add a split->acc_guid field that is set to the account's guid. This way an Account is not required to exist yet when loading the split. Later when xaccSplitGetAccount is called the account is looked up, cached and returned. Make sure everything accesses ->acc through the helper function. * src/engine/AccountP.h: same as below. * src/engine/Account.c (xaccAccountSetGUID): mark guid argument const since it doesn't keep a pointer to it. * src/doc/xml/transactions-v2.dtd: change guid -> id. * src/engine/Transaction.c (get_denom_internal): New helper func. (get_currency_denom): use func. (get_security_denom): use func. * src/engine/sixtp.c: (sixtp_sax_end_handler, sixtp_sax_characters_handler, sixtp_sax_start_handler): don't use g_return_if_fail to test pdata->parsing_ok so we don't see the million CRITICAL warnings. We'll print an error at the end anyway. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3762 57a11ea4-9604-0410-9ed3-97b8803252fd
98 lines
2.2 KiB
Makefile
98 lines
2.2 KiB
Makefile
#!/usr/bin/make -f
|
|
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
|
|
# Adapted for gnucash by Dirk Eddelbuettel. March 1999. GPL'ed
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
package=gnucash
|
|
|
|
id= $(shell pwd)/debian/tmp
|
|
|
|
#perlpriv = $(id)$(shell perl -V:installprivlib | perl -pe 's/.*\'(.*)\'.*/\1/;')
|
|
#perlarch = $(id)$(shell perl -V:installarchlib | perl -pe 's/.*\'(.*)\'.*/\1/;')
|
|
|
|
configure: configure.in
|
|
automake
|
|
autoconf
|
|
|
|
Makefile: Makefile.in configure
|
|
dh_testdir
|
|
$(checkdir)
|
|
./autogen.sh --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--infodir=/usr/share/info \
|
|
--mandir=/usr/share/man \
|
|
--enable-error-on-warnings
|
|
|
|
# --enable-efence \
|
|
# --enable-profile \
|
|
|
|
build: build-stamp
|
|
build-stamp: Makefile
|
|
dh_testdir
|
|
$(checkdir)
|
|
make
|
|
# touch build-stamp
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-stamp install-stamp
|
|
-$(MAKE) distclean
|
|
-rm `find . -name "*.cache"`
|
|
-rm `find . -name "*.log"`
|
|
dh_clean
|
|
|
|
install: install-stamp
|
|
install-stamp: build-stamp
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k
|
|
dh_installdirs
|
|
make install prefix=$(id)/usr sysconfdir=$(id)/etc GNC_DOC_INSTALL_DIR=$(id)/usr/share/doc/gnucash infodir=$(id)/usr/share/info mandir=$(id)/usr/share/man
|
|
rm -f $(id)/usr/share/doc/gnucash/COPYING.gz
|
|
|
|
# no perl anymore
|
|
#mkdir -p $(perlpriv)
|
|
#mv $(id)/usr/share/gnucash/perl/gnucash.pm $(perlpriv)
|
|
#mkdir -p $(perlarch)
|
|
#mv $(id)/usr/share/gnucash/perl/* $(perlarch)
|
|
#-rmdir -p $(id)/usr/share/gnucash/perl
|
|
|
|
touch install-stamp
|
|
|
|
binary-indep: build install
|
|
|
|
binary-arch: build install
|
|
# dh_testversion
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installdocs
|
|
dh_installexamples doc/examples/*.xac
|
|
dh_installmenu
|
|
# dh_installemacsen
|
|
# dh_installinit
|
|
dh_installcron
|
|
dh_installmanpages
|
|
# dh_undocumented gnc-prices.1 gnucash.1x gnucash.motif.1x
|
|
dh_installchangelogs ChangeLog
|
|
# dh_strip
|
|
# cp src/.libs/gnucash $(id)/usr/bin/gnucash.debug
|
|
dh_compress
|
|
dh_fixperms
|
|
dh_installdeb
|
|
dh_shlibdeps
|
|
dh_gencontrol
|
|
# dh_makeshlibs
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
source diff:
|
|
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
|
|
|
|
binary: binary-indep binary-arch
|
|
.PHONY: build clean binary-indep binary-arch binary install
|
|
|
|
|