File: rules

package info (click to toggle)
poke 4.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 82,604 kB
  • sloc: ansic: 619,962; sh: 8,887; yacc: 6,128; makefile: 4,964; lisp: 4,729; lex: 1,851; asm: 776; exp: 681; awk: 408; python: 42; java: 21; sed: 16
file content (42 lines) | stat: -rwxr-xr-x 1,056 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
41
42
#!/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

%:
	dh $@ --with elpa,vim_addon

# See https://sourceware.org/bugzilla/show_bug.cgi?id=30051 for
# details on why dh_autoreconf can only be executed inside "jitter/".
override_dh_autoreconf:
	dh_autoreconf -Djitter/

override_dh_auto_configure:
	dh_auto_configure -- $(POKE_CONFIGURE_FLAGS)

execute_after_dh_auto_install:
	rm -v \
		debian/tmp/usr/lib/*/libpoke.a \
		debian/tmp/usr/lib/*/libpoke.la \
		debian/tmp/usr/bin/pk-strings \
		debian/tmp/usr/bin/pk-bin2poke \
		debian/tmp/usr/bin/pk-jojopatch

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

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

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