blob: bb730593254f3247049404e3a4f7ae1aa8abcf0e [file] [log] [blame]
Alexander Couzensbce896f2017-08-06 21:16:08 +00001#!/usr/bin/make -f
2# You must remove unused comment lines for the released package.
3# See debhelper(7) (uncomment to enable)
4# This is an autogenerated template for debian/rules.
5#
6# Output every command that modifies files on the build system.
7#export DH_VERBOSE = 1
8#
9# Copy some variable definitions from pkg-info.mk and vendor.mk
10# under /usr/share/dpkg/ to here if they are useful.
11#
12# See FEATURE AREAS/ENVIRONMENT in dpkg-buildflags(1)
13# Apply all hardening options
14#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
15# Package maintainers to append CFLAGS
16#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
17# Package maintainers to append LDFLAGS
18#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
19#
20# With debhelper version 9 or newer, the dh command exports
21# all buildflags. So there is no need to include the
22# /usr/share/dpkg/buildflags.mk file here if compat is 9 or newer.
23#
24# These are rarely used code. (START)
25#
26# The following include for *.mk magically sets miscellaneous
27# variables while honoring existing values of pertinent
28# environment variables:
29#
30# Architecture-related variables such as DEB_TARGET_MULTIARCH:
31#include /usr/share/dpkg/architecture.mk
32# Vendor-related variables such as DEB_VENDOR:
33#include /usr/share/dpkg/vendor.mk
34# Package-related variables such as DEB_DISTRIBUTION
Alexander Couzens3dc50c72018-05-04 01:42:31 +020035include /usr/share/dpkg/pkg-info.mk
36
37VERSION := $(shell echo '$(DEB_VERSION)' | sed -e 's/[+-].*//' -e 's/~//g')
38
Alexander Couzensbce896f2017-08-06 21:16:08 +000039#
40# You may alternatively set them susing a simple script such as:
41# DEB_VENDOR ?= $(shell dpkg-vendor --query Vendor)
42#
43# These are rarely used code. (END)
44#
45
46# main packaging script based on dh7 syntax
47%:
48 dh $@ --with autoreconf
49
Alexander Couzensbce896f2017-08-06 21:16:08 +000050# debmake generated override targets
51# Set options for ./configure
52#CONFIGURE_FLAGS = <options for ./configure>
53#overrride_dh_configure:
54# dh_configure -- $(CONFIGURE_FLAGS)
55#
56# Do not install libtool archive, python .pyc .pyo
57#override_dh_install:
58# dh_install --list-missing -X.la -X.pyc -X.pyo
59
60# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
61override_dh_strip:
62 dh_strip --dbg-package=libasn1c-dbg