2002-06-22 07:55:24 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
2002-06-22 08:15:29 +02:00
|
|
|
# Modified by John Goerzen
|
2002-06-22 07:55:24 +02:00
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
# This is the debhelper compatibility version to use.
|
|
|
|
export DH_COMPAT=3
|
|
|
|
|
2003-06-02 23:09:57 +02:00
|
|
|
PYTHON=python2.2
|
2002-06-22 08:15:29 +02:00
|
|
|
PACKAGE=offlineimap
|
2002-06-22 07:55:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS += -g
|
|
|
|
endif
|
|
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
|
|
INSTALL_PROGRAM += -s
|
|
|
|
endif
|
|
|
|
|
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
|
|
|
# Add here commands to configure the package.
|
2002-06-22 08:15:29 +02:00
|
|
|
#$(PYTHON) setup.py configure
|
2002-06-22 07:55:24 +02:00
|
|
|
|
|
|
|
touch configure-stamp
|
|
|
|
|
|
|
|
|
|
|
|
build: build-stamp
|
|
|
|
|
|
|
|
build-stamp: configure-stamp
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
# Add here commands to compile the package.
|
2002-06-22 08:15:29 +02:00
|
|
|
$(PYTHON) setup.py build
|
|
|
|
#/usr/bin/docbook-to-man debian/pygopherd.sgml > pygopherd.1
|
2002-06-22 07:55:24 +02:00
|
|
|
|
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp configure-stamp
|
|
|
|
|
|
|
|
# Add here commands to clean up after the build process.
|
|
|
|
-$(MAKE) clean
|
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
|
2002-06-22 08:15:29 +02:00
|
|
|
# Add here commands to install the package into debian/pygopherd.
|
|
|
|
#$(MAKE) install DESTDIR=$(CURDIR)/debian/pygopherd
|
|
|
|
$(PYTHON) setup.py install --root=`pwd`/debian/$(PACKAGE) --no-compile
|
2002-06-22 07:55:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
2002-06-22 08:15:29 +02:00
|
|
|
# We have nothing to do by default.
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
2002-06-22 07:55:24 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
# dh_installdebconf
|
|
|
|
dh_installdocs
|
2003-01-07 04:47:15 +01:00
|
|
|
dh_installexamples offlineimap.conf offlineimap.conf.minimal
|
2002-06-22 07:55:24 +02:00
|
|
|
dh_installmenu
|
|
|
|
# dh_installlogrotate
|
|
|
|
# dh_installemacsen
|
|
|
|
# dh_installpam
|
|
|
|
# dh_installmime
|
2002-06-22 08:15:29 +02:00
|
|
|
dh_installinit
|
2002-06-22 07:55:24 +02:00
|
|
|
dh_installcron
|
2002-07-12 09:51:52 +02:00
|
|
|
dh_installman offlineimap.1
|
2002-06-22 07:55:24 +02:00
|
|
|
dh_installinfo
|
|
|
|
# dh_undocumented
|
2002-06-22 08:15:29 +02:00
|
|
|
dh_installchangelogs
|
2002-06-22 07:55:24 +02:00
|
|
|
dh_link
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
# dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
# dh_perl
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|