docker-offlineimap/debian/rules

99 lines
1.9 KiB
Plaintext
Raw Normal View History

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
2006-08-12 06:05:39 +02:00
PYTHON=python
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
make doc
2002-06-22 08:15:29 +02:00
#/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.
[ ! -f Makefile ] || $(MAKE) clean
2002-06-22 07:55:24 +02:00
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
2010-06-29 23:49:52 +02:00
$(PYTHON) setup.py install --root=`pwd`/debian/$(PACKAGE) --no-compile --prefix=/usr
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
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
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_perl
2006-08-12 06:05:39 +02:00
dh_pysupport
# dh_makeshlibs
dh_installdeb
2002-06-22 07:55:24 +02:00
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure