Commit 4861cdf6 authored by Colin Watson's avatar Colin Watson

Simplify debian/rules using /usr/share/dpkg/buildflags.mk.

parent 26bf20b4
pcmciautils (018-9) UNRELEASED; urgency=low
* Add a Vcs-Browser field (closes: #681622).
* Simplify debian/rules using /usr/share/dpkg/buildflags.mk.
-- Colin Watson <cjwatson@debian.org> Sat, 14 Jul 2012 23:46:18 +0100
......
......@@ -6,7 +6,7 @@ Uploaders: Per Olofsson <pelle@debian.org>
Standards-Version: 3.9.2
Vcs-Bzr: http://anonscm.debian.org/bzr/pkg-pcmciautils/debian
Vcs-Browser: http://anonscm.debian.org/loggerhead/bzr/pkg-pcmciautils/debian
Build-Depends: dpkg-dev (>= 1.15.7~), debhelper (>= 8.1.0~), flex, bison
Build-Depends: dpkg-dev (>= 1.16.1~), debhelper (>= 8.1.0~), flex, bison
Homepage: http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html
Package: pcmciautils
......
......@@ -14,13 +14,11 @@ else
CROSS := CROSS=$(DEB_HOST_GNU_TYPE)-
endif
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
BUILDFLAGS := CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
DPKG_EXPORT_BUILDFLAGS := 1
include /usr/share/dpkg/buildflags.mk
override_dh_auto_build:
$(BUILDFLAGS) $(MAKE) $(CROSS) STRIPCMD=true
$(MAKE) $(CROSS) STRIPCMD=true
override_dh_auto_install:
dh_auto_install --destdir=debian/pcmciautils -- \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment