File: rules

package info (click to toggle)
mcds 1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 532 kB
  • sloc: ansic: 1,628; perl: 189; makefile: 65; sh: 57; sed: 16
file content (22 lines) | stat: -rwxr-xr-x 664 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -Wextra -pedantic -Werror -Wno-error=date-time

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_autoreconf:
	# Overwrite upstream version number to accomodate any upstream commits
	# taken since the last upstream tagged release. When built from a tag
	# this is override is a NOP
	cp configure.ac configure.ac.stash
	sed -Ei "s/^(AC_INIT\(.*),.*,(.*)$$/\1,\ [$(DEB_VERSION_UPSTREAM)],\2/g" configure.ac
	dh_autoreconf
	# Restore stashed version
	mv configure.ac.stash configure.ac

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog