3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
6 # Uncomment this to turn on verbose mode.
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26 config.status: configure
28 # Add here commands to configure the package.
29 #CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
35 build-stamp: config.status
38 # Add here commands to compile the package.
47 # Add here commands to clean up after the build process.
58 # Add here commands to install the package into debian/tmp
59 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
62 # Build architecture-independent files here.
63 binary-indep: build install
64 # We have nothing to do by default.
66 # Build architecture-dependent files here.
70 dh_install --sourcedir=debian/tmp
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-arch binary-indep binary install configure