2 # Sample debian/rules that uses debhelper.
3 # This file was originally written by Joey Hess and Craig Small.
8 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 DESTDIR = $(CURDIR)/debian/birthday
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22 configure: configure-stamp
27 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
33 build-stamp: configure-stamp
44 rm -f build-stamp configure-stamp
46 [ ! -f Makefile ] || $(MAKE) distclean
47 rm -f Makefile.in aclocal.m4 compile config.guess config.h.in config.sub configure data/Makefile.in depcomp install-sh intltool-extract.in intltool-merge.in intltool-update.in ltmain.sh missing mkinstalldirs po/Makefile.in.in src/Makefile.in
57 $(MAKE) DESTDIR=$(DESTDIR) install
58 find $(DESTDIR) -name "*.la" | xargs rm -f
60 binary-arch: build install
77 .PHONY: build clean binary-arch binary install configure