Only include all dpkg default.mk in rules.real

This commit is contained in:
Bastian Blank 2023-11-05 16:00:31 +01:00
parent 3d9299c3ea
commit 6f4940e2e0
5 changed files with 10 additions and 5 deletions

2
debian/rules vendored
View file

@ -1,5 +1,7 @@
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
SHELL := sh -e
SOURCE := $(shell dpkg-parsechangelog -SSource)
VERSION := $(shell dpkg-parsechangelog -SVersion)

3
debian/rules.defs vendored
View file

@ -1,5 +1,2 @@
include /usr/share/dpkg/default.mk
BUILD_DIR = debian/build
STAMPS_DIR = debian/stamps

4
debian/rules.real vendored
View file

@ -5,6 +5,9 @@
# Additionally, variables version, abiname and ltver are
# expected to be available (need to be exported from the parent process).
#
include /usr/share/dpkg/default.mk
SHELL := bash -e
MAINTAINER := $(shell sed -ne 's,^Maintainer: .[^<]*<\([^>]*\)>,\1,p' debian/control)
DISTRIBUTION := $(shell dpkg-parsechangelog -SDistribution)
@ -17,7 +20,6 @@ DISTRIBUTOR := Debian
endif
include debian/rules.defs
include /usr/share/dpkg/pkg-info.mk
ifdef ARCH
ifneq ($(DEB_HOST_ARCH),$(ARCH))

View file

@ -1,8 +1,10 @@
#!/usr/bin/make -f
SHELL := sh -e
include /usr/share/dpkg/architecture.mk
SHELL := sh -e
build: build-arch build-indep
build-arch:
build-indep:

View file

@ -1,3 +1,5 @@
include /usr/share/dpkg/default.mk
SHELL := bash -e
export DH_OPTIONS