2013-03-26 21:40:05 +05:30
|
|
|
#!/usr/bin/make -f
|
2013-03-26 21:11:39 +05:30
|
|
|
|
|
|
|
# This file was automatically generated by stdeb 0.6.0 at
|
|
|
|
# Tue, 26 Mar 2013 16:28:27 +0100
|
|
|
|
|
|
|
|
# Unset the environment variables set by dpkg-buildpackage. (This is
|
|
|
|
# necessary because distutils is brittle with compiler/linker flags
|
|
|
|
# set. Specifically, packages using f2py will break without this.)
|
|
|
|
unexport CPPFLAGS
|
|
|
|
unexport CFLAGS
|
|
|
|
unexport CXXFLAGS
|
|
|
|
unexport FFLAGS
|
|
|
|
unexport LDFLAGS
|
|
|
|
|
|
|
|
#exports specified using stdeb Setup-Env-Vars:
|
|
|
|
export DH_OPTIONS=--buildsystem=python_distutils
|
2006-06-24 01:40:56 +05:30
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
|
2010-03-10 15:15:30 +05:30
|
|
|
# [ ! -f Makefile ] || $(MAKE) distclean
|
|
|
|
# -rm -f src/*.pyo src/*/*.pyo
|
|
|
|
# -rm -f config.status config.log
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2010-03-10 15:15:30 +05:30
|
|
|
dh_auto_clean
|
2006-06-24 01:40:56 +05:30
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2010-03-10 15:15:30 +05:30
|
|
|
dh_prep
|
2006-06-24 01:40:56 +05:30
|
|
|
dh_installdirs
|
|
|
|
|
2010-03-10 15:15:30 +05:30
|
|
|
# Add here commands to install the package into debian/tmp.
|
|
|
|
# GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
2006-06-24 01:40:56 +05:30
|
|
|
$(MAKE) install DESTDIR=`pwd`/debian/gramps
|
2010-03-10 15:15:30 +05:30
|
|
|
-rm -f debian/gramps/usr/share/gramps/COPYING
|
|
|
|
ln -s /usr/share/common-licenses/GPL-2 debian/gramps/usr/share/gramps/COPYING
|
|
|
|
-rm -rf debian/gramps/usr/var
|
|
|
|
# cp src/data/gramps.xml debian/gramps/usr/share/mime/packages
|
2006-06-24 01:40:56 +05:30
|
|
|
-find debian/gramps/usr/share/ -name "*.pyo" -exec rm -f '{}' ';'
|
|
|
|
|
|
|
|
cp debian/gramps.xpm debian/gramps/usr/share/pixmaps/
|
|
|
|
# cp src/gramps.xpm debian/tmp/usr/share/pixmaps/
|
2010-03-10 15:15:30 +05:30
|
|
|
# cp src/images/gramps.svg debian/gramps/usr/share/pixmaps/
|
|
|
|
# chmod 644 debian/gramps/usr/share/pixmaps/gramps.svg
|
2006-06-24 01:40:56 +05:30
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2010-03-10 15:15:30 +05:30
|
|
|
dh_installdocs FAQ
|
|
|
|
dh_installmenu
|
|
|
|
# dh_installman
|
2006-06-24 01:40:56 +05:30
|
|
|
dh_installmime -i
|
2010-03-10 15:15:30 +05:30
|
|
|
# dh_installchangelogs ChangeLog
|
|
|
|
dh_installchangelogs
|
|
|
|
dh_icons
|
|
|
|
# dh_movefiles -i
|
|
|
|
# dh_gconf -i
|
|
|
|
dh_link -i
|
2006-06-24 01:40:56 +05:30
|
|
|
dh_compress -i
|
|
|
|
dh_fixperms -i
|
2010-03-10 15:15:30 +05:30
|
|
|
dh_pycentral -i
|
|
|
|
dh_installdeb -i
|
2006-06-24 01:40:56 +05:30
|
|
|
dh_gencontrol -i
|
|
|
|
dh_md5sums -i
|
|
|
|
dh_builddeb -i
|
|
|
|
|
2010-03-10 15:15:30 +05:30
|
|
|
|
2006-06-24 01:40:56 +05:30
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|