File: rules

package info (click to toggle)
irony-mode 1.5.0-5%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 800 kB
  • sloc: lisp: 2,117; cpp: 1,419; python: 159; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 569 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION_UPSTREAM
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ -Dserver --with elpa

override_dh_elpa:
	sed -i "/:package-version/s/1.2.0/$(DEB_VERSION_UPSTREAM)/" irony.el
	sed -i "s/1.2.0/$(DEB_VERSION_UPSTREAM)/" irony-server.rst
	dh_elpa
	sed -i "s/$(DEB_VERSION_UPSTREAM)/1.2.0/" irony-server.rst
	sed -i "/:package-version/s/$(DEB_VERSION_UPSTREAM)/1.2.0/" irony.el

override_dh_installman:
	mkdir -p debian/tmp
	rst2man irony-server.rst > debian/tmp/irony-server.man
	dh_installman