Commit 8237c46e authored by Colin Watson's avatar Colin Watson

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

parent 0b6da4cf
pcmciautils (018-10) UNRELEASED; urgency=medium
[ Ondřej Nový ]
* d/changelog: Remove trailing whitespaces
[ Colin Watson ]
* Simplify debian/rules using /usr/share/dpkg/default.mk.
-- Ondřej Nový <onovy@debian.org> Mon, 01 Oct 2018 10:06:05 +0200
pcmciautils (018-9) unstable; urgency=low
......
#! /usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS := 1
include /usr/share/dpkg/default.mk
export V := true
%:
dh $@
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CROSS :=
else
CROSS := CROSS=$(DEB_HOST_GNU_TYPE)-
endif
DPKG_EXPORT_BUILDFLAGS := 1
include /usr/share/dpkg/buildflags.mk
override_dh_auto_build:
$(MAKE) $(CROSS) STRIPCMD=true
......
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