File: package-notes.mk

package info (click to toggle)
package-notes 0.17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 128 kB
  • sloc: python: 218; perl: 97; ansic: 41; makefile: 29
file content (27 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-License-Identifier: CC0-1.0
# Include from debian/rules to use with dh_package_notes.
# See dh_package_notes(1) for details

# llvm does not support spec files. Check for Meson-specific env vars too.
ifeq ( ,$(filter lld, $(LD)))
ifeq ( ,$(filter lld, $(CC_LD)))
ifeq ( ,$(filter lld, $(CXX_LD)))
# Ubuntu implemented this in dpkg-buildpackage, make this a no-op to avoid duplication
include /usr/share/dpkg/vendor.mk
ifneq ($(DEB_VENDOR),Ubuntu)
# binutils 2.39 is required for --package-metadata=
ifeq (0, $(shell dpkg --compare-versions $$(dpkg-query -f '$${Version}' -W binutils) ge 2.39; echo $$?))
ifeq (, $(filter nocheck, $(DEBUGINFOD_URLS)))
export DEBUGINFOD_URLS=https://debuginfod.debian.net
endif
export DEB_SOURCE_PACKAGE_VERSION=$(shell dpkg-parsechangelog -S Version)
export DEB_SOURCE_PACKAGE_NAME=$(shell dpkg-parsechangelog -S Source)
# Set by /usr/share/dpkg/vendor.mk
export DEB_VENDOR
export DEB_LDFLAGS_MAINT_APPEND+= -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs
endif
endif
endif
endif
endif