#!/usr/bin/make -f # Sample debian/rules that uses debhelper. # This file is public domain software, originally written by Joey Hess. # # This version is for a multibinary package. It also allows you to build any # of the binary packages independantly, via binary- targets. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS = -Wall -g LDFLAGS = -lglib-2.0 INSTALL = install INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 export CFLAGS LDFLAGS INSTALL_FILE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DIR ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif build: build-stamp build-stamp: dh_testdir # avoid time skews dh_autoreconf ./configure --prefix=/usr --with-glib=2 --mandir=/usr/share/man touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp config.log [ ! -f Makefile ] || $(MAKE) distclean distclean-generic dh_autoreconf_clean dh_clean #find config.sub config.guess ltmain.sh COPYING INSTALL intl -type l | xargs -r rm install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) DESTDIR=`pwd`/debian/tmp install dh_movefiles # Nothing to do. binary-indep: # Build architecture dependant packages using the common target. binary-arch: install #dh_testversion 2 dh_testdir dh_testroot dh_installdocs AUTHORS # NEWS README dh_installexamples dh_installchangelogs # ChangeLog dh_compress dh_strip dh_fixperms # Keep -V on until the library reaches major version 1. dh_makeshlibs -V dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install