File: rules

package info (click to toggle)
emacs-cmake-mode 4.0.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 340 kB
  • sloc: lisp: 375; perl: 157; makefile: 7
file content (13 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

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

VERSION := $(shell echo '$(DEB_VERSION_UPSTREAM)' | sed -e 's/\+ds[0-9]*$$//')

%:
	dh $@ --with elpa

execute_before_dh_elpa: debian/cmake-mode-pkg.el

debian/cmake-mode-pkg.el: debian/cmake-mode-pkg.el.in
	sed -e 's/@VERSION@/$(VERSION)/' $< > $@