2001-07-05 19:16:18 -04:00
|
|
|
#!/usr/bin/make -f
|
2005-07-15 17:54:15 -04:00
|
|
|
# -*- makefile -*-
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# This file was originally written by Joey Hess and Craig Small.
|
|
|
|
# As a special exception, when this file is copied by dh-make into a
|
|
|
|
# dh-make output file, you may use that output file without restriction.
|
|
|
|
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
2001-07-05 19:16:18 -04:00
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
include /usr/share/dpatch/dpatch.make
|
2001-07-05 19:16:18 -04:00
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
# These are used for cross-compiling and for saving the configure script
|
|
|
|
# from having to guess our platform (since we know it already)
|
|
|
|
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
|
|
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
2001-07-05 19:16:18 -04:00
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
|
|
|
|
CFLAGS = -Wall -g
|
|
|
|
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS += -O0
|
|
|
|
else
|
|
|
|
CFLAGS += -O2
|
|
|
|
endif
|
|
|
|
|
|
|
|
config.status: patch-stamp configure
|
2001-07-05 19:16:18 -04:00
|
|
|
dh_testdir
|
2005-07-15 17:54:15 -04:00
|
|
|
# Add here commands to configure the package.
|
|
|
|
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
|
|
|
|
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
|
|
|
|
--sysconfdir=/etc \
|
2001-07-05 19:16:18 -04:00
|
|
|
--without-servertest --enable-ipv6 --with-bot --with-proxy \
|
2005-07-15 17:54:15 -04:00
|
|
|
--enable-perl --with-perl-lib=vendor
|
|
|
|
|
2001-07-05 19:16:18 -04:00
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
build: build-stamp
|
|
|
|
|
|
|
|
build-stamp: config.status
|
2001-07-05 19:16:18 -04:00
|
|
|
dh_testdir
|
2005-07-15 17:54:15 -04:00
|
|
|
|
|
|
|
# Add here commands to compile the package.
|
|
|
|
$(MAKE)
|
|
|
|
#docbook-to-man debian/irssi.sgml > irssi.1
|
|
|
|
|
2001-07-05 19:16:18 -04:00
|
|
|
touch build-stamp
|
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
clean: unpatch
|
2001-07-05 19:16:18 -04:00
|
|
|
dh_testdir
|
2005-07-15 17:54:15 -04:00
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp
|
2001-07-05 19:16:18 -04:00
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
# Add here commands to clean up after the build process.
|
2001-07-05 19:16:18 -04:00
|
|
|
-$(MAKE) distclean
|
2005-07-15 17:54:15 -04:00
|
|
|
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
|
|
|
|
cp -f /usr/share/misc/config.sub config.sub
|
|
|
|
endif
|
|
|
|
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
|
|
|
|
cp -f /usr/share/misc/config.guess config.guess
|
|
|
|
endif
|
2001-07-05 19:16:18 -04:00
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
|
|
|
|
dh_clean
|
2001-07-05 19:16:18 -04:00
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2005-07-15 17:54:15 -04:00
|
|
|
dh_clean -k
|
2001-07-05 19:16:18 -04:00
|
|
|
dh_installdirs
|
|
|
|
|
2005-07-15 17:54:15 -04:00
|
|
|
# Add here commands to install the package into debian/tmp.
|
|
|
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
|
|
|
|
|
2001-07-05 19:16:18 -04:00
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
# We have nothing to do by default.
|
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2005-07-15 17:54:15 -04:00
|
|
|
dh_installchangelogs ChangeLog
|
|
|
|
dh_installdocs
|
|
|
|
dh_installexamples
|
|
|
|
dh_install
|
|
|
|
# dh_installmenu
|
|
|
|
# dh_installdebconf
|
|
|
|
# dh_installlogrotate
|
|
|
|
# dh_installemacsen
|
|
|
|
# dh_installpam
|
|
|
|
# dh_installmime
|
|
|
|
# dh_installinit
|
|
|
|
# dh_installcron
|
|
|
|
# dh_installinfo
|
|
|
|
dh_installman
|
|
|
|
dh_link
|
2001-07-05 19:16:18 -04:00
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
2005-07-15 17:54:15 -04:00
|
|
|
dh_perl
|
|
|
|
# dh_python
|
2001-07-05 19:16:18 -04:00
|
|
|
dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
2005-07-15 17:54:15 -04:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|