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)
10 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23 configure: configure-stamp
28 ./configure --enable-maintainer-mode --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
34 build-stamp: configure-stamp
44 rm -f build-stamp configure-stamp
57 $(MAKE) DESTDIR=$(CURDIR)/debian/simple-brightness-applet install
58 find $(CURDIR)/debian/simple-brightness-applet -name "*.la" | xargs rm -f
60 binary-arch: build install
76 .PHONY: build clean binary-arch binary install configure