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 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 configure: configure-stamp
25 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --disable-static CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
31 build-stamp: configure-stamp
41 rm -f build-stamp configure-stamp
53 $(MAKE) DESTDIR=$(CURDIR)/debian/simple-brightness-applet install
54 find $(CURDIR)/debian/simple-brightness-applet -name "*.la" | xargs rm -f
56 binary-arch: build install
72 .PHONY: build clean binary-arch binary install configure