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
|
|
|
|
|
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
|
|
dh_testdir
|
1998-03-01 11:02:13 -06:00
|
|
|
$(checkdir)
|
2000-05-06 20:00:26 -05:00
|
|
|
CFLAGS="-fsigned-char -g" ./configure --prefix=/usr
|
1998-03-01 11:02:13 -06:00
|
|
|
make depend
|
2000-05-06 20:00:26 -05:00
|
|
|
make gnome
|
1998-03-01 11:02:13 -06:00
|
|
|
touch build
|
2000-05-06 20:00:26 -05: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
|
|
|
|
make install prefix=`pwd`/debian/tmp/usr GNC_DOCDIR=`pwd`/debian/tmp/usr/share/doc
|
|
|
|
strip `pwd`/debian/tmp/usr/lib/gnucash/gnucash.so
|
|
|
|
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-05-06 20:00:26 -05:00
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_suidregister
|
|
|
|
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
|
|
|
|