File: rules

package info (click to toggle)
dh-elpa 2.0.8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 164 kB
  • sloc: perl: 353; lisp: 232; sh: 77; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 607 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION_UPSTREAM
DESTDIR=$(CURDIR)/debian/tmp
# this is not needed, and only included as a test of the feature.
ELPA_NAME_dh-elpa=dh-elpa

%:
	dh $@

override_dh_auto_build:
	pod2man -c Debhelper --section=1 dh_elpa > dh_elpa.1
	pod2man -c Debhelper --section=1 dh_elpa_test > dh_elpa_test.1

override_dh_install:
	dh_install
	dh_installman dh_elpa.1 dh_elpa_test.1
	./dh_elpa --no-byte-compile

override_dh_auto_install:
	install -m 755 -D dh_elpa $(DESTDIR)/usr/bin/dh_elpa
	install -m 755 -D dh_elpa_test $(DESTDIR)/usr/bin/dh_elpa_test