3 # Uncomment this to turn on verbose mode.
6 INSTALL := install -o root -g root -m 755
8 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
9 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
11 version=$(shell dpkg-parsechangelog | grep urgency | awk '{ print $$2; }'| \
12 sed -e s/"("// -e s/")"// | cut -d"-" -f1)
17 override_dh_auto_build:
18 dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS) -std=c99 -fomit-frame-pointer -pedantic -D_BSD_SOURCE \
19 -DFWCUTTER_VERSION_=`echo $(version) | cut -d: -f2`"
21 override_dh_auto_clean:
23 rm -rf $(CURDIR)/debian/b43-fwcutter/usr/man
25 override_dh_installchangelogs:
26 dh_installchangelogs $(CURDIR)/debian/b43-fwcutter.upstream-changelog
28 override_dh_auto_install:
29 $(INSTALL) b43-fwcutter $(CURDIR)/debian/b43-fwcutter/usr/bin