File: rules

package info (click to toggle)
poke 2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 73,648 kB
  • sloc: ansic: 588,458; sh: 7,927; yacc: 5,858; lisp: 4,960; makefile: 4,256; lex: 1,231; asm: 776; exp: 570; awk: 403; tcl: 281; python: 42; java: 21; sed: 16
file content (40 lines) | stat: -rwxr-xr-x 907 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

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

# Jitter-generated code won't work with LTO.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto

# The configure flags we use for poke.
POKE_CONFIGURE_FLAGS = \
	--disable-rpath \
	--disable-hserver \
	--disable-gui

%:
	dh $@ --with elpa,vim_addon

override_dh_auto_configure:
	dh_auto_configure -- $(POKE_CONFIGURE_FLAGS)

override_dh_auto_install:
	dh_auto_install
	rm -v \
		debian/tmp/usr/lib/*/libpoke.a \
		debian/tmp/usr/lib/*/libpoke.la \
		debian/tmp/usr/bin/pk-elfextractor \
		debian/tmp/usr/bin/pk-strings \
		debian/tmp/usr/bin/pk-bin2poke

PKGEL_VERSION = $(subst +dfsg,,$(DEB_VERSION_UPSTREAM))

override_dh_elpa:
	sed "s@%VERSION%@\"$(PKGEL_VERSION)\"@" \
		debian/poke-pkg.el.in \
		> debian/tmp/usr/share/emacs/site-lisp/poke-pkg.el
	dh_elpa

override_dh_auto_clean:
ifneq (,$(wildcard ./Makefile))
	dh_auto_clean
endif