File: rules

package info (click to toggle)
posh 0.12.6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,492 kB
  • ctags: 1,602
  • sloc: ansic: 14,596; xml: 1,604; sh: 1,343; perl: 964; makefile: 40
file content (19 lines) | stat: -rwxr-xr-x 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

%:
	dh $@ --builddirectory=obj --with=autoreconf

override_dh_strip:
	dh_strip --dbg-package=posh-dbg

override_dh_installdocs:
	dh_installdocs --link-doc=posh

posh_version := $(shell dpkg-parsechangelog | sed -n '/^Version: \(.*\)$$/ {s//\1/;p}')

prebuild:
	printf "define(POSH_VERSION, %s)\n" $(posh_version) >acinclude.m4

	autoreconf -fi

.PHONY: prebuild override_dh_strip override_dh_installdocs