1998-03-01 11:02:13 -06:00
|
|
|
#!/usr/bin/make -f
|
2000-05-06 20:00:26 -05:00
|
|
|
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
|
|
|
|
# Adapted for gnucash by Dirk Eddelbuettel. March 1999. GPL'ed
|
1998-03-01 11:02:13 -06:00
|
|
|
|
2000-05-06 20:00:26 -05:00
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
1998-03-01 11:02:13 -06:00
|
|
|
|
2000-05-06 20:00:26 -05:00
|
|
|
package=gnucash
|
|
|
|
|
2000-11-21 14:55:20 -06:00
|
|
|
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/;')
|
2000-12-11 15:26:58 -06:00
|
|
|
|
2001-01-11 16:32:22 -06:00
|
|
|
configure: configure.in
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
Makefile: Makefile.in configure
|
2000-05-06 20:00:26 -05:00
|
|
|
dh_testdir
|
1998-03-01 11:02:13 -06:00
|
|
|
$(checkdir)
|
2001-02-12 16:35:20 -06:00
|
|
|
./autogen.sh --prefix=/usr \
|
2000-11-21 14:55:20 -06:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--infodir=/usr/share/info \
|
2001-02-27 14:15:11 -06:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-error-on-warnings
|
|
|
|
|
2001-03-09 01:46:13 -06:00
|
|
|
# --enable-efence \
|
2001-02-27 14:15:11 -06:00
|
|
|
# --enable-profile \
|
2000-12-11 15:26:58 -06:00
|
|
|
|
2001-01-11 16:32:22 -06:00
|
|
|
build: build-stamp
|
|
|
|
build-stamp: Makefile
|
2000-12-11 15:26:58 -06:00
|
|
|
dh_testdir
|
|
|
|
$(checkdir)
|
2000-11-21 14:55:20 -06:00
|
|
|
make
|
2001-02-12 16:35:20 -06:00
|
|
|
# touch build-stamp
|
1998-03-01 11:02:13 -06:00
|
|
|
|
|
|
|
clean:
|
2000-05-06 20:00:26 -05:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp install-stamp
|
2000-06-04 16:40:15 -05:00
|
|
|
-$(MAKE) distclean
|
|
|
|
-rm `find . -name "*.cache"`
|
|
|
|
-rm `find . -name "*.log"`
|
2000-05-06 20:00:26 -05:00
|
|
|
dh_clean
|
1998-03-01 11:02:13 -06:00
|
|
|
|
2000-05-06 20:00:26 -05:00
|
|
|
install: install-stamp
|
|
|
|
install-stamp: build-stamp
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
2000-11-21 14:55:20 -06:00
|
|
|
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
|
|
|
|
|
2000-05-06 20:00:26 -05:00
|
|
|
touch install-stamp
|
1998-03-01 11:02:13 -06:00
|
|
|
|
2000-05-06 20:00:26 -05:00
|
|
|
binary-indep: build install
|
|
|
|
|
|
|
|
binary-arch: build install
|
|
|
|
# dh_testversion
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installdocs
|
2000-05-08 06:23:09 -05:00
|
|
|
dh_installexamples doc/examples/*.xac
|
2000-05-06 20:00:26 -05:00
|
|
|
dh_installmenu
|
|
|
|
# dh_installemacsen
|
|
|
|
# dh_installinit
|
|
|
|
dh_installcron
|
|
|
|
dh_installmanpages
|
2000-05-08 06:23:09 -05:00
|
|
|
# dh_undocumented gnc-prices.1 gnucash.1x gnucash.motif.1x
|
|
|
|
dh_installchangelogs ChangeLog
|
2000-12-19 01:59:44 -06:00
|
|
|
# dh_strip
|
|
|
|
# cp src/.libs/gnucash $(id)/usr/bin/gnucash.debug
|
2000-05-06 20:00:26 -05:00
|
|
|
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
|
1998-03-01 11:02:13 -06:00
|
|
|
|
2000-05-06 20:00:26 -05:00
|
|
|
|